Spaces:
Sleeping
Sleeping
Commit
·
95d4d6b
1
Parent(s):
51649e7
Update app.py
Browse files
app.py
CHANGED
@@ -89,8 +89,8 @@ def lstm_predict_message(message):
|
|
89 |
|
90 |
|
91 |
# Load the saved model
|
92 |
-
gru_movie_model = tf.keras.models.load_model('
|
93 |
-
with open('
|
94 |
lstm_movie_tokeniser = pickle.load(handle)
|
95 |
|
96 |
# Function to predict sentiment for a given review
|
|
|
89 |
|
90 |
|
91 |
# Load the saved model
|
92 |
+
gru_movie_model = tf.keras.models.load_model('gru_movie_model.h5')
|
93 |
+
with open('tokenizer_movie_gru.pickle', 'rb') as handle:
|
94 |
lstm_movie_tokeniser = pickle.load(handle)
|
95 |
|
96 |
# Function to predict sentiment for a given review
|