pgc3105 commited on
Commit
bde68da
·
verified ·
1 Parent(s): dd5d7bd

Update app.py

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