explorewithai commited on
Commit
31b27a0
·
verified ·
1 Parent(s): 0307fac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -26,11 +26,11 @@ def predict_sentiment(text):
26
 
27
  # Map numeric labels to meaningful strings and get probabilities
28
  if prediction == 4:
29
- sentiment = "Bad Word"
30
  elif prediction == 0:
31
- sentiment = "Good Word"
32
  elif prediction == 3:
33
- sentiment = "Neutral Word"
34
  else:
35
  sentiment = "Unknown" # Should not happen, but good practice
36
 
 
26
 
27
  # Map numeric labels to meaningful strings and get probabilities
28
  if prediction == 4:
29
+ sentiment = "Bad sentence"
30
  elif prediction == 0:
31
+ sentiment = "Good sentence"
32
  elif prediction == 3:
33
+ sentiment = "Neutral sentence"
34
  else:
35
  sentiment = "Unknown" # Should not happen, but good practice
36