Spaces:
Build error
Build error
Update model.py
Browse files
model.py
CHANGED
|
@@ -308,7 +308,7 @@ def load_image_from_path(img_path):
|
|
| 308 |
return img
|
| 309 |
|
| 310 |
|
| 311 |
-
def generate_caption(img_path, add_noise=False):
|
| 312 |
img = load_image_from_path(img_path)
|
| 313 |
|
| 314 |
if add_noise:
|
|
|
|
| 308 |
return img
|
| 309 |
|
| 310 |
|
| 311 |
+
def generate_caption(img_path,caption_model, add_noise=False):
|
| 312 |
img = load_image_from_path(img_path)
|
| 313 |
|
| 314 |
if add_noise:
|