Update app.py
Browse files
app.py
CHANGED
|
@@ -157,7 +157,7 @@ def predict(cap_col, img, target_language):
|
|
| 157 |
captions.append(translated_caption)
|
| 158 |
|
| 159 |
for _ in range(4):
|
| 160 |
-
pred_caption = image_to_text(
|
| 161 |
if pred_caption not in captions:
|
| 162 |
translated_caption = translate(pred_caption, target_language)
|
| 163 |
captions.append(translated_caption)
|
|
|
|
| 157 |
captions.append(translated_caption)
|
| 158 |
|
| 159 |
for _ in range(4):
|
| 160 |
+
pred_caption = image_to_text(img)
|
| 161 |
if pred_caption not in captions:
|
| 162 |
translated_caption = translate(pred_caption, target_language)
|
| 163 |
captions.append(translated_caption)
|