sm2899 commited on
Commit
9cb70e4
1 Parent(s): 4a503a2

Update sentiment-analyser.py

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