Spaces:
Runtime error
Runtime error
Update app to use new model
Browse files
model.py
CHANGED
@@ -315,8 +315,8 @@ def get_caption_model():
|
|
315 |
caption_model.decoder(sample_y, sample_enc_out, training=False)
|
316 |
|
317 |
try:
|
318 |
-
caption_model.load_weights('models/
|
319 |
except FileNotFoundError:
|
320 |
-
caption_model.load_weights('image-caption-generator/models/
|
321 |
|
322 |
return caption_model
|
|
|
315 |
caption_model.decoder(sample_y, sample_enc_out, training=False)
|
316 |
|
317 |
try:
|
318 |
+
caption_model.load_weights('models/trained_coco_weights_2.h5')
|
319 |
except FileNotFoundError:
|
320 |
+
caption_model.load_weights('image-caption-generator/models/trained_coco_weights_2.h5')
|
321 |
|
322 |
return caption_model
|