Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def classify_sentiment(text):
|
|
14 |
logits = outputs.logits
|
15 |
prediction = torch.argmax(logits, dim=-1).item()
|
16 |
|
17 |
-
labels = {0: "
|
18 |
return labels[prediction]
|
19 |
|
20 |
with gr.Blocks() as demo:
|
|
|
14 |
logits = outputs.logits
|
15 |
prediction = torch.argmax(logits, dim=-1).item()
|
16 |
|
17 |
+
labels = {0: "Positive", 1: "Neutral", 2: "Negative"}
|
18 |
return labels[prediction]
|
19 |
|
20 |
with gr.Blocks() as demo:
|