sm2899 commited on
Commit
d0973ee
1 Parent(s): 4267362

Update sentiment-analyser.py

Browse files
Files changed (1) hide show
  1. sentiment-analyser.py +4 -4
sentiment-analyser.py CHANGED
@@ -18,7 +18,7 @@ if submit:
18
  result = classifier(user_input)[0]
19
  label = result['label']
20
  score = result['score']
21
- if label == 'POSITIVE':
22
- st.success(f'{label} sentiment (score: {score})')
23
- else:
24
- st.error(f'{label} sentiment (score: {score})')
 
18
  result = classifier(user_input)[0]
19
  label = result['label']
20
  score = result['score']
21
+ if label == 'POSITIVE':
22
+ st.success(f'{label} sentiment (score: {score})')
23
+ else:
24
+ st.error(f'{label} sentiment (score: {score})')