ArunNyp7 commited on
Commit
e3177ba
·
verified ·
1 Parent(s): d77b094

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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: "Negative", 1: "Neutral", 2: "Positive"}
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: