Spaces:
Runtime error
Runtime error
Update sentiment-analyser.py
Browse files- sentiment-analyser.py +2 -2
sentiment-analyser.py
CHANGED
@@ -20,5 +20,5 @@ if submit:
|
|
20 |
score = result['score']
|
21 |
if label == 'POSITIVE':
|
22 |
st.success(f'{label} sentiment (score: {score})')
|
23 |
-
|
24 |
-
|
|
|
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})')
|