Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ def sentiment(text, state):
|
|
| 28 |
state.append(res)
|
| 29 |
df = pd.DataFrame(state)
|
| 30 |
res_txt = [
|
| 31 |
-
f"{r['text']}: \n valence={r['valence']:0.3f}, arousal={r['arousal']:0.3f}, confidence={r['confidence']:0.3f}"
|
| 32 |
for r in state
|
| 33 |
]
|
| 34 |
return "\n".join(res_txt), df, df, df, state
|
|
|
|
| 28 |
state.append(res)
|
| 29 |
df = pd.DataFrame(state)
|
| 30 |
res_txt = [
|
| 31 |
+
f"{r['text']}: \n valence = {r['valence']:0.3f}, arousal = {r['arousal']:0.3f}, confidence = {r['confidence']:0.3f}"
|
| 32 |
for r in state
|
| 33 |
]
|
| 34 |
return "\n".join(res_txt), df, df, df, state
|