Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def reviewnueva(review, word_index, maxmimo_num_palabras):
|
|
15 |
sequence.append(index)
|
16 |
return sequence
|
17 |
|
18 |
-
model = tf.keras.models.load_model(
|
19 |
|
20 |
def predict_sentiento(review):
|
21 |
sequence = reviewnueva(review, word_index)
|
|
|
15 |
sequence.append(index)
|
16 |
return sequence
|
17 |
|
18 |
+
model = tf.keras.models.load_model('opiniones.h5')
|
19 |
|
20 |
def predict_sentiento(review):
|
21 |
sequence = reviewnueva(review, word_index)
|