Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,9 +36,7 @@ def sentiment(text, state):
|
|
| 36 |
f"{r['text']}: valence={r['valence']:0.3f}, arousal={r['arousal']:0.3f}, confidence=arousal={r['confidence']:0.3f}"
|
| 37 |
for r in state
|
| 38 |
]
|
| 39 |
-
return "\n".join(res_txt),
|
| 40 |
-
# df,
|
| 41 |
-
state
|
| 42 |
|
| 43 |
|
| 44 |
iface = gr.Interface(
|
|
|
|
| 36 |
f"{r['text']}: valence={r['valence']:0.3f}, arousal={r['arousal']:0.3f}, confidence=arousal={r['confidence']:0.3f}"
|
| 37 |
for r in state
|
| 38 |
]
|
| 39 |
+
return "\n".join(res_txt), state # df, state
|
|
|
|
|
|
|
| 40 |
|
| 41 |
|
| 42 |
iface = gr.Interface(
|