PRASHANTH REDDY commited on
Commit
58dbd62
·
1 Parent(s): e8ae043

Added all files

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ def predict_sentiment(text, model_name):
35
  accuracy = knn_test_accuracy
36
  else:
37
  return "Invalid model selection", None
38
- if prediction==1:
39
  sentiment="Positive"
40
  pos_accuracy=accuracy
41
  neg_accuracy=1-pos_accuracy
 
35
  accuracy = knn_test_accuracy
36
  else:
37
  return "Invalid model selection", None
38
+ if prediction==1:
39
  sentiment="Positive"
40
  pos_accuracy=accuracy
41
  neg_accuracy=1-pos_accuracy