Spaces:
Runtime error
Runtime error
Update model.py
Browse files
model.py
CHANGED
|
@@ -321,8 +321,8 @@ def get_caption_model():
|
|
| 321 |
caption_model.decoder(sample_y, sample_enc_out, training=False)
|
| 322 |
|
| 323 |
try:
|
| 324 |
-
caption_model.load_weights('saved_models/
|
| 325 |
except FileNotFoundError:
|
| 326 |
-
caption_model.load_weights('Image-Captioning/saved_models/
|
| 327 |
|
| 328 |
return caption_model
|
|
|
|
| 321 |
caption_model.decoder(sample_y, sample_enc_out, training=False)
|
| 322 |
|
| 323 |
try:
|
| 324 |
+
caption_model.load_weights('/saved_models/updated_model.h5')
|
| 325 |
except FileNotFoundError:
|
| 326 |
+
caption_model.load_weights('Image-Captioning/saved_models/updated_model.h5')
|
| 327 |
|
| 328 |
return caption_model
|