Nikhil0987 commited on
Commit
1c65650
·
verified ·
1 Parent(s): 742b941

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -25,8 +25,8 @@ if user_input:
25
  logits = outputs.logits
26
  predicted_class_id = logits.argmax(-1).item()
27
 
28
- # Example sentiment mapping (you might have your own)
29
- sentiment_map = {0: "negative", 1: "neutral", 2: "positive"}
30
- sentiment = sentiment_map[predicted_class_id]
31
 
32
- st.write(f"Bot: I sense a {sentiment} sentiment in your message.")
 
25
  logits = outputs.logits
26
  predicted_class_id = logits.argmax(-1).item()
27
 
28
+ # # Example sentiment mapping (you might have your own)
29
+ # sentiment_map = {0: "negative", 1: "neutral", 2: "positive"}
30
+ # sentiment = sentiment_map[predicted_class_id]
31
 
32
+ st.write(f"Bot: Normal conversational message.")