ahm14 commited on
Commit
5c3fa48
·
verified ·
1 Parent(s): 706fc89

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -12
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
- "Critical": ["corrupt", "oppression", "failure", "repression", "unjust"],
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
- "Urgent": ["urgent", "violence", "disappearances", "forced", "killing", "concern", "crisis"],
21
- "Harsh": ["corrupt", "oppression", "failure", "repression", "exploit", "unjust"],
22
- "Negative": ["tragedy", "loss", "pain", "sorrow", "mourning", "grief"],
23
- "Empowering": ["rise", "resist", "mobilize", "inspire", "courage", "change"],
24
- "Neutral": ["announcement", "event", "scheduled", "update", "details", "protest on"],
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