Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,11 +22,11 @@ from phoBERT import BERT_predict
|
|
22 |
|
23 |
#Load LSTM
|
24 |
fp = Path(__file__).with_name('lstm_model.keras')
|
25 |
-
LSTM_model = keras.
|
26 |
|
27 |
#Load GRU
|
28 |
fp = Path(__file__).with_name('gru_model.keras')
|
29 |
-
GRU_model = keras.
|
30 |
|
31 |
|
32 |
def tokenizer_pad(tokenizer,comment_text,max_length=200):
|
|
|
22 |
|
23 |
#Load LSTM
|
24 |
fp = Path(__file__).with_name('lstm_model.keras')
|
25 |
+
LSTM_model = tf.keras.models.load_model(fp)
|
26 |
|
27 |
#Load GRU
|
28 |
fp = Path(__file__).with_name('gru_model.keras')
|
29 |
+
GRU_model = tf.keras.models.load_model(fp)
|
30 |
|
31 |
|
32 |
def tokenizer_pad(tokenizer,comment_text,max_length=200):
|