Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -130,9 +130,9 @@ emotions = {
|
|
130 |
'optimism': {'percentage': 10, 'motivation': 'hopeful', 'intensity': 0},
|
131 |
'pessimism': {'percentage': 10, 'motivation': 'doubtful', 'intensity': 0},
|
132 |
'boredom': {'percentage': 10, 'motivation': 'indifferent', 'intensity': 0},
|
133 |
-
'envy': {'percentage': 10, 'motivation':
|
134 |
-
|
135 |
-
|
136 |
default_percentage = total_percentage / len(emotions)
|
137 |
for emotion in emotions:
|
138 |
emotions[emotion]['percentage'] = default_percentage
|
@@ -287,4 +287,4 @@ iface = gr.Interface(
|
|
287 |
description="Analyze emotions and sentiments from text input."
|
288 |
)
|
289 |
|
290 |
-
iface.launch()
|
|
|
130 |
'optimism': {'percentage': 10, 'motivation': 'hopeful', 'intensity': 0},
|
131 |
'pessimism': {'percentage': 10, 'motivation': 'doubtful', 'intensity': 0},
|
132 |
'boredom': {'percentage': 10, 'motivation': 'indifferent', 'intensity': 0},
|
133 |
+
'envy': {'percentage': 10, 'motivation': 'jealous', 'intensity': 0}
|
134 |
+
}
|
135 |
+
total_percentage = 200
|
136 |
default_percentage = total_percentage / len(emotions)
|
137 |
for emotion in emotions:
|
138 |
emotions[emotion]['percentage'] = default_percentage
|
|
|
287 |
description="Analyze emotions and sentiments from text input."
|
288 |
)
|
289 |
|
290 |
+
iface.launch()
|