adelevett commited on
Commit
fe59d31
·
1 Parent(s): 6740d2d

Fix tab hover whiteout styling, stop tracking update_demo.py, and rename NtRf4icqE7o srt file

Browse files
.gitignore CHANGED
@@ -3,4 +3,6 @@ __pycache__/
3
  *.pyc
4
  .DS_Store
5
  extract.py
6
-
 
 
 
3
  *.pyc
4
  .DS_Store
5
  extract.py
6
+ update_demo.py
7
+ .env
8
+ test*
app.py CHANGED
@@ -201,14 +201,28 @@ custom_theme = gr.themes.Default(
201
  button_primary_text_color_dark="#ffffff",
202
 
203
  button_primary_background_fill_hover="#9370db",
204
- button_primary_background_fill_hover_dark="#9370db"
 
 
 
 
 
 
 
 
 
 
 
 
205
  )
206
 
207
  custom_css = """
208
  .tab-container button:hover,
209
  button[role="tab"]:hover,
210
  .tab-wrapper button:hover,
211
- .tabs button:hover {
 
 
212
  background-color: rgba(255, 255, 255, 0.08) !important;
213
  color: #fffffe !important;
214
  }
 
201
  button_primary_text_color_dark="#ffffff",
202
 
203
  button_primary_background_fill_hover="#9370db",
204
+ button_primary_background_fill_hover_dark="#9370db",
205
+
206
+ button_secondary_background_fill="#161a23",
207
+ button_secondary_background_fill_dark="#161a23",
208
+
209
+ button_secondary_background_fill_hover="rgba(255, 255, 255, 0.08)",
210
+ button_secondary_background_fill_hover_dark="rgba(255, 255, 255, 0.08)",
211
+
212
+ button_secondary_text_color="#fffffe",
213
+ button_secondary_text_color_dark="#fffffe",
214
+
215
+ button_secondary_border_color="rgba(255, 255, 255, 0.08)",
216
+ button_secondary_border_color_dark="rgba(255, 255, 255, 0.08)"
217
  )
218
 
219
  custom_css = """
220
  .tab-container button:hover,
221
  button[role="tab"]:hover,
222
  .tab-wrapper button:hover,
223
+ .tabs button:hover,
224
+ .tab-nav button:hover,
225
+ .tabitem button:hover {
226
  background-color: rgba(255, 255, 255, 0.08) !important;
227
  color: #fffffe !important;
228
  }
sample/{v=NtRf4icqE7o.srt → v=NtRf4icqE7o.srt.txt} RENAMED
File without changes
update_demo.py DELETED
@@ -1,32 +0,0 @@
1
- import os
2
- import json
3
- from pipeline import run_livestream_pipeline
4
-
5
- def main():
6
- video_id = "xLljoibgUvk"
7
- pdf_path = "sample/44271_2026_Article_402.pdf"
8
- srt_path = "sample/v=xLljoibgUvk.srt.txt"
9
-
10
- print(f"Reading manual transcript from {srt_path}...")
11
- with open(srt_path, "r", encoding="utf-8") as f:
12
- srt_text = f.read()
13
-
14
- print(f"Running pipeline for {video_id} with {pdf_path}...")
15
- try:
16
- chat_data = run_livestream_pipeline(
17
- video_id=video_id,
18
- doc_path=pdf_path,
19
- transcript_text=srt_text
20
- )
21
-
22
- out_path = "sample/demo_chat.json"
23
- print(f"Saving output to {out_path}...")
24
- with open(out_path, "w", encoding="utf-8") as f:
25
- json.dump(chat_data, f, indent=2, ensure_ascii=False)
26
-
27
- print("Done!")
28
- except Exception as e:
29
- print(f"Pipeline execution failed: {e}")
30
-
31
- if __name__ == "__main__":
32
- main()