Spaces:
Sleeping
Sleeping
Update model.py
Browse files
model.py
CHANGED
|
@@ -360,8 +360,8 @@ def get_caption_model():
|
|
| 360 |
caption_model.decoder(sample_y, sample_enc_out, training=False)
|
| 361 |
|
| 362 |
try:
|
| 363 |
-
caption_model.load_weights('saved_models/
|
| 364 |
except FileNotFoundError:
|
| 365 |
-
caption_model.load_weights('Image-Captioning/saved_models/
|
| 366 |
|
| 367 |
return caption_model
|
|
|
|
| 360 |
caption_model.decoder(sample_y, sample_enc_out, training=False)
|
| 361 |
|
| 362 |
try:
|
| 363 |
+
caption_model.load_weights('saved_models/model.ckpt')
|
| 364 |
except FileNotFoundError:
|
| 365 |
+
caption_model.load_weights('Image-Captioning/saved_models/model.ckpt')
|
| 366 |
|
| 367 |
return caption_model
|