rocky250 commited on
Commit
e8a0f51
·
verified ·
1 Parent(s): dc66c38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -14
app.py CHANGED
@@ -1,9 +1,11 @@
1
- from typing import Dict, List, Tuple
 
 
 
 
 
2
  import pandas as pd
3
- import numpy as np
4
  import gradio as gr
5
- import plotly.graph_objects as go
6
-
7
 
8
  from fetcher import (
9
  extract_video_id,
@@ -12,7 +14,6 @@ from fetcher import (
12
  fetch_comments,
13
  search_videos_by_title,
14
  )
15
-
16
  from analyzer import (
17
  detect_misinformation,
18
  analyze_sentiment_batch,
@@ -20,9 +21,6 @@ from analyzer import (
20
  extract_keywords,
21
  sentiment_weighted_keywords,
22
  )
23
-
24
-
25
-
26
  from charts import (
27
  sentiment_donut,
28
  keyword_bar,
@@ -33,6 +31,10 @@ from charts import (
33
  uncertainty_analysis,
34
  )
35
 
 
 
 
 
36
  CSS = """
37
  @import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Syne:wght@400;600;700;800&family=IBM+Plex+Sans:wght@300;400;500&display=swap');
38
 
@@ -292,11 +294,9 @@ details[open] > summary { color: var(--cyan) !important; }
292
  .vv-hr { border: none; border-top: 1px solid #1e2330; margin: 1.1rem 0; }
293
  """
294
 
295
- # THEME = gr.Themes.Base(
296
- # primary_hue=gr.themes.colors.cyan,
297
- # neutral_hue=gr.themes.colors.gray,
298
- # front=[gr.themes.GoogleFront("IBM Plex Sans"),"sans-serif"],
299
- # )
300
 
301
  def _empty_plotly(msg: str = "Run analysis to see data", h: int = 230):
302
  import plotly.graph_objects as go
@@ -883,4 +883,3 @@ if __name__ == "__main__":
883
  font=[gr.themes.GoogleFont("IBM Plex Sans"), "sans-serif"],
884
  ),
885
  )
886
-
 
1
+ """
2
+ app.py — Video Verifier & Sentiment Analyzer (Gradio 6.x)
3
+
4
+ """
5
+
6
+ import os
7
  import pandas as pd
 
8
  import gradio as gr
 
 
9
 
10
  from fetcher import (
11
  extract_video_id,
 
14
  fetch_comments,
15
  search_videos_by_title,
16
  )
 
17
  from analyzer import (
18
  detect_misinformation,
19
  analyze_sentiment_batch,
 
21
  extract_keywords,
22
  sentiment_weighted_keywords,
23
  )
 
 
 
24
  from charts import (
25
  sentiment_donut,
26
  keyword_bar,
 
31
  uncertainty_analysis,
32
  )
33
 
34
+
35
+ # CSS — full-viewport dark theme, zero white bleed
36
+
37
+
38
  CSS = """
39
  @import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Syne:wght@400;600;700;800&family=IBM+Plex+Sans:wght@300;400;500&display=swap');
40
 
 
294
  .vv-hr { border: none; border-top: 1px solid #1e2330; margin: 1.1rem 0; }
295
  """
296
 
297
+
298
+ # HELPERS
299
+
 
 
300
 
301
  def _empty_plotly(msg: str = "Run analysis to see data", h: int = 230):
302
  import plotly.graph_objects as go
 
883
  font=[gr.themes.GoogleFont("IBM Plex Sans"), "sans-serif"],
884
  ),
885
  )