pclarke commited on
Commit
2c9a6a2
·
1 Parent(s): 8745af2

Update app.py

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