harshvardhan96 commited on
Commit
dfaf13a
1 Parent(s): 9006d6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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('/kaggle/input/model-1/encoder_model.h5')
11
 
12
  # Load the decoder model
13
- dec_model = tf.keras.models.load_model('/kaggle/input/model-1/decoder_model.h5')
14
 
15
- with open('/kaggle/input/tokenizer1/tokenizer.pkl', 'rb') as f:
16
  tokenizer = pickle.load(f)
17
 
18
- with open('/kaggle/input/tokenizer-params/tokenizer_params (1).pkl', 'rb') as f:
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"]