Sephfox commited on
Commit
6193f33
·
verified ·
1 Parent(s): 2aa531a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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': '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,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()