Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ def emo_calc(input):
|
|
| 7 |
model="j-hartmann/emotion-english-distilroberta-base"
|
| 8 |
snt = Sentiments(model, input, as_dict=False)
|
| 9 |
output = input + "\n"
|
| 10 |
-
float_dict = snt.get_sentiments_for_text()
|
| 11 |
for k, v in float_dict.items():
|
| 12 |
output += f"{k}: {100 * v:.2f}%\n"
|
| 13 |
return output
|
|
|
|
| 7 |
model="j-hartmann/emotion-english-distilroberta-base"
|
| 8 |
snt = Sentiments(model, input, as_dict=False)
|
| 9 |
output = input + "\n"
|
| 10 |
+
float_dict = snt.get_sentiments_for_text(input)
|
| 11 |
for k, v in float_dict.items():
|
| 12 |
output += f"{k}: {100 * v:.2f}%\n"
|
| 13 |
return output
|