harshvardhan96 commited on
Commit
b3e8c1b
1 Parent(s): 527f6fd

Update app.py

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