sm2899 commited on
Commit
71573af
1 Parent(s): d454322

Update sentiment-analyser.py

Browse files
Files changed (1) hide show
  1. sentiment-analyser.py +1 -1
sentiment-analyser.py CHANGED
@@ -25,7 +25,7 @@ def classification(user_input, type):
25
  if submit:
26
  resultf = classification(user_input, model_type)
27
  if model_type=="sentiment-roberta-large-english":
28
- st.write(resultf[0][0] + ": " + resultf[0][1])
29
  else:
30
  label = resultf[0]['label']
31
  score = resultf[0]['score']
 
25
  if submit:
26
  resultf = classification(user_input, model_type)
27
  if model_type=="sentiment-roberta-large-english":
28
+ st.write(resultf[0]["label"] + ": " + resultf[0]["score"])
29
  else:
30
  label = resultf[0]['label']
31
  score = resultf[0]['score']