dancingninjas
commited on
Commit
·
b5b3b26
1
Parent(s):
3114278
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ if text:
|
|
12 |
out = pipe(text)
|
13 |
|
14 |
# Convert the model's output (0 or 1) to descriptive labels
|
15 |
-
sentiment_label = "
|
16 |
|
17 |
# Display the sentiment label and probability
|
18 |
|
|
|
12 |
out = pipe(text)
|
13 |
|
14 |
# Convert the model's output (0 or 1) to descriptive labels
|
15 |
+
sentiment_label = "Positive" if out[0]['label'] == 'LABEL_1' else "Negative"
|
16 |
|
17 |
# Display the sentiment label and probability
|
18 |
|