Commit
·
7dd38c4
1
Parent(s):
f90c3a5
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ if text:
|
|
14 |
results = pipe(text)
|
15 |
|
16 |
# Determine sentiment label
|
17 |
-
sentiment_label = "
|
18 |
|
19 |
# Display sentiment label and probability
|
20 |
st.subheader('Sentiment Analysis Result:')
|
|
|
14 |
results = pipe(text)
|
15 |
|
16 |
# Determine sentiment label
|
17 |
+
sentiment_label = "Negative" if results[0]['label'] == 'LABEL_1' else "Positive"
|
18 |
|
19 |
# Display sentiment label and probability
|
20 |
st.subheader('Sentiment Analysis Result:')
|