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