Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ threshold = 0.5
|
|
38 |
|
39 |
if label == 'LABEL_1' and score > sentiment_threshold: # Positive sentiment
|
40 |
return 'POSITIVO'
|
41 |
-
|
42 |
return 'NEGATIVO'
|
43 |
|
44 |
|
|
|
38 |
|
39 |
if label == 'LABEL_1' and score > sentiment_threshold: # Positive sentiment
|
40 |
return 'POSITIVO'
|
41 |
+
else: label == 'LABEL_0' and score <= sentiment_threshold: # Negative sentiment
|
42 |
return 'NEGATIVO'
|
43 |
|
44 |
|