Spaces:
Runtime error
Runtime error
harshvardhan96
commited on
Commit
•
dfaf13a
1
Parent(s):
9006d6a
Update app.py
Browse files
app.py
CHANGED
@@ -7,15 +7,15 @@ import random
|
|
7 |
import time
|
8 |
|
9 |
# Load the encoder model
|
10 |
-
enc_model = tf.keras.models.load_model('
|
11 |
|
12 |
# Load the decoder model
|
13 |
-
dec_model = tf.keras.models.load_model('
|
14 |
|
15 |
-
with open('
|
16 |
tokenizer = pickle.load(f)
|
17 |
|
18 |
-
with open('
|
19 |
tokenizer_params = pickle.load(f)
|
20 |
|
21 |
maxlen_questions = tokenizer_params["maxlen_questions"]
|
|
|
7 |
import time
|
8 |
|
9 |
# Load the encoder model
|
10 |
+
enc_model = tf.keras.models.load_model('./encoder_model.h5')
|
11 |
|
12 |
# Load the decoder model
|
13 |
+
dec_model = tf.keras.models.load_model('./decoder_model.h5')
|
14 |
|
15 |
+
with open('./tokenizer.pkl', 'rb') as f:
|
16 |
tokenizer = pickle.load(f)
|
17 |
|
18 |
+
with open('./tokenizer_params (1).pkl', 'rb') as f:
|
19 |
tokenizer_params = pickle.load(f)
|
20 |
|
21 |
maxlen_questions = tokenizer_params["maxlen_questions"]
|