Bigshot commited on
Commit
933e9cb
1 Parent(s): 246a438

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -33,7 +33,7 @@ def use(input_text):
33
  prediction = model.predict(sequences)[0]
34
 
35
  # Print the prediction
36
- if prediction[0]<0.7:
37
  return "That's Negative! (" + str(round(round(1-prediction[0],2)*100,1)) + "% confidence)", prediction[0]
38
  elif prediction[0]>0.3:
39
  return "That's Positive! (" + str(round(round(prediction[0],2)*100,1)) + "% confidence)", prediction[0]
 
33
  prediction = model.predict(sequences)[0]
34
 
35
  # Print the prediction
36
+ if prediction[0]<0.3:
37
  return "That's Negative! (" + str(round(round(1-prediction[0],2)*100,1)) + "% confidence)", prediction[0]
38
  elif prediction[0]>0.3:
39
  return "That's Positive! (" + str(round(round(prediction[0],2)*100,1)) + "% confidence)", prediction[0]