DrishtiSharma commited on
Commit
44a0b8b
1 Parent(s): d2be599

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,9 +15,9 @@ def decide(text):
15
  tokenized_text = tokenizer.texts_to_sequences([text])
16
  padded_tokens = pad_sequences(tokenized_text, maxlen= 200)
17
  result = model.predict(padded_tokens)[0][0]
18
- if result > 0.6 :
19
  return "Positive review"
20
- elif result < 0.4:
21
  return "Negative review"
22
  else:
23
  return "Neutral review"
 
15
  tokenized_text = tokenizer.texts_to_sequences([text])
16
  padded_tokens = pad_sequences(tokenized_text, maxlen= 200)
17
  result = model.predict(padded_tokens)[0][0]
18
+ if result >= 0.6 :
19
  return "Positive review"
20
+ elif result <= 0.4:
21
  return "Negative review"
22
  else:
23
  return "Neutral review"