Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import pickle
|
|
7 |
# Load the pre-trained model
|
8 |
@st.cache(allow_output_mutation=True)
|
9 |
def load_model():
|
10 |
-
model = tf.keras.models.load_model('caption_model.h5')
|
11 |
return model
|
12 |
|
13 |
# Load the tokenizer
|
|
|
7 |
# Load the pre-trained model
|
8 |
@st.cache(allow_output_mutation=True)
|
9 |
def load_model():
|
10 |
+
model = tf.keras.models.load_model('./caption_model.h5')
|
11 |
return model
|
12 |
|
13 |
# Load the tokenizer
|