Commit ·
3db69d9
1
Parent(s): 6c9979e
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,8 +12,6 @@ def predict():
|
|
| 12 |
captions = []
|
| 13 |
pred_caption = generate_caption('tmp.jpg', caption_model)
|
| 14 |
captions.append(pred_caption)
|
| 15 |
-
pred_caption = generate_caption('tmp.jpg', caption_model, add_noise=True)
|
| 16 |
-
captions.append(pred_caption)
|
| 17 |
return captions;
|
| 18 |
def launch(inputs):
|
| 19 |
img = Image.open(requests.get(inputs, stream=True).raw)
|
|
|
|
| 12 |
captions = []
|
| 13 |
pred_caption = generate_caption('tmp.jpg', caption_model)
|
| 14 |
captions.append(pred_caption)
|
|
|
|
|
|
|
| 15 |
return captions;
|
| 16 |
def launch(inputs):
|
| 17 |
img = Image.open(requests.get(inputs, stream=True).raw)
|