MANIKANDAN A commited on
Commit ·
c9c0096
1
Parent(s): c579034
Update app.py
Browse files
app.py
CHANGED
|
@@ -103,9 +103,9 @@ def predict(cap_col):
|
|
| 103 |
captions.append(pred_caption)
|
| 104 |
|
| 105 |
for _ in range(4):
|
| 106 |
-
pred_caption = generate_caption('tmp.jpg',
|
| 107 |
if pred_caption not in captions:
|
| 108 |
-
captions.append(
|
| 109 |
|
| 110 |
cap_col.markdown('<div class="caption-container">', unsafe_allow_html=True)
|
| 111 |
for c in captions:
|
|
|
|
| 103 |
captions.append(pred_caption)
|
| 104 |
|
| 105 |
for _ in range(4):
|
| 106 |
+
pred_caption = generate_caption('tmp.jpg',get_caption_model, add_noise=True)
|
| 107 |
if pred_caption not in captions:
|
| 108 |
+
captions.append(pred_caption)
|
| 109 |
|
| 110 |
cap_col.markdown('<div class="caption-container">', unsafe_allow_html=True)
|
| 111 |
for c in captions:
|