oleksiikondus commited on
Commit
c1dfa03
·
verified ·
1 Parent(s): 0b52e39

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -25,7 +25,6 @@ with open('tokenizer_rnn.json') as f:
25
  tokenizer = tokenizer_from_json(json.dumps(data))
26
 
27
  def predict_sentiment(comment):
28
- comment = preprocess_text(comment)
29
  sequence = tokenizer.texts_to_sequences([comment])
30
  padded_sequence = pad_sequences(sequence, padding='post', maxlen=words_per_review)
31
  prediction = model_rnn.predict(padded_sequence)
 
25
  tokenizer = tokenizer_from_json(json.dumps(data))
26
 
27
  def predict_sentiment(comment):
 
28
  sequence = tokenizer.texts_to_sequences([comment])
29
  padded_sequence = pad_sequences(sequence, padding='post', maxlen=words_per_review)
30
  prediction = model_rnn.predict(padded_sequence)