Spaces:
Sleeping
Sleeping
oscarvillafuerte
commited on
Update app.py
Browse files
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"
|