oscarvillafuerte commited on
Commit
ab62855
·
verified ·
1 Parent(s): 9010b45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,9 +15,9 @@ def reviewnueva(review, word_index, maximo_num_palabras):
15
  if index < maximo_num_palabras:
16
  sequence.append(index)
17
  return sequence
18
-
19
  def predict_sentimiento(review):
20
- sequence = reviewnueva(review, word_index)
21
  prediccion = model.predict(sequence)
22
  if prediccion[0][0]>=0.5 :
23
  sentimiento = "Positivo"
 
15
  if index < maximo_num_palabras:
16
  sequence.append(index)
17
  return sequence
18
+
19
  def predict_sentimiento(review):
20
+ sequence = reviewnueva(review, word_index, maximo_num_palabras)
21
  prediccion = model.predict(sequence)
22
  if prediccion[0][0]>=0.5 :
23
  sentimiento = "Positivo"