Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,40 @@
|
|
| 1 |
from typing import Dict, List, Tuple
|
| 2 |
import pandas as pd
|
| 3 |
import numpy as np
|
|
|
|
| 4 |
import plotly.graph_objects as go
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
DARK_BG = "#ffffff" # FIXED: white background
|
| 7 |
CARD_BG = "#ffffff" # FIXED: white cards
|
| 8 |
BORDER = "#e2e8f0"
|
|
|
|
| 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 |
+
form fetcher import (
|
| 9 |
+
extract_video_id,
|
| 10 |
+
fetch_video_metadata,
|
| 11 |
+
fetch_transcript,
|
| 12 |
+
fetch_comments,
|
| 13 |
+
serach_video_by_title,
|
| 14 |
+
)
|
| 15 |
+
|
| 16 |
+
from analyzer import (
|
| 17 |
+
detect_misinformations,
|
| 18 |
+
analyze_sentiment_batch,
|
| 19 |
+
sentiment_summary,
|
| 20 |
+
extract_keywords,
|
| 21 |
+
sentiments_weighted_keywords,
|
| 22 |
+
)
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
from charts import (
|
| 27 |
+
sentiment_donut,
|
| 28 |
+
keyword_bar,
|
| 29 |
+
sentiment_timeline,
|
| 30 |
+
keyword_comarison,
|
| 31 |
+
modality_misinfo_distribution,
|
| 32 |
+
trust_score_by_modality,
|
| 33 |
+
uncertainty_analysis,
|
| 34 |
+
)
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
DARK_BG = "#ffffff" # FIXED: white background
|
| 39 |
CARD_BG = "#ffffff" # FIXED: white cards
|
| 40 |
BORDER = "#e2e8f0"
|