Update app.py
Browse files
app.py
CHANGED
@@ -11,18 +11,17 @@ nltk.download('punkt')
|
|
11 |
|
12 |
# Updated tone categories
|
13 |
tone_categories = {
|
14 |
-
"Emotional": ["urgent", "violence", "disappearances", "forced", "killing", "crisis"],
|
15 |
-
"
|
16 |
-
"Somber": ["tragedy", "loss", "pain", "sorrow", "mourning", "grief"],
|
17 |
-
"Motivational": ["rise", "resist", "mobilize", "inspire", "courage", "change"],
|
18 |
-
"Informative": ["announcement", "event", "scheduled", "update", "details"],
|
19 |
-
"Positive": ["progress", "unity", "hope", "victory", "solidarity"],
|
20 |
-
"
|
21 |
-
"
|
22 |
-
"
|
23 |
-
"
|
24 |
-
"
|
25 |
-
"Hopeful": ["progress", "unity", "hope", "victory", "together", "solidarity"]
|
26 |
}
|
27 |
|
28 |
# Updated frame categories
|
|
|
11 |
|
12 |
# Updated tone categories
|
13 |
tone_categories = {
|
14 |
+
"Emotional": ["urgent", "violence", "disappearances", "forced", "killing", "crisis", "concern"],
|
15 |
+
"Harsh": ["corrupt", "oppression", "failure", "repression", "exploit", "unjust", "authoritarian"],
|
16 |
+
"Somber": ["tragedy", "loss", "pain", "sorrow", "mourning", "grief", "devastation"],
|
17 |
+
"Motivational": ["rise", "resist", "mobilize", "inspire", "courage", "change", "determination"],
|
18 |
+
"Informative": ["announcement", "event", "scheduled", "update", "details", "protest", "statement"],
|
19 |
+
"Positive": ["progress", "unity", "hope", "victory", "together", "solidarity", "uplifting"],
|
20 |
+
"Happy": ["joy", "celebration", "cheer", "success", "smile", "gratitude", "harmony"],
|
21 |
+
"Angry": ["rage", "injustice", "fury", "resentment", "outrage", "betrayal"],
|
22 |
+
"Fearful": ["threat", "danger", "terror", "panic", "risk", "warning"],
|
23 |
+
"Sarcastic": ["brilliant", "great job", "amazing", "what a surprise", "well done", "as expected"],
|
24 |
+
"Hopeful": ["optimism", "better future", "faith", "confidence", "looking forward"]
|
|
|
25 |
}
|
26 |
|
27 |
# Updated frame categories
|