Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,8 +22,8 @@ def predict(image,max_length=64, num_beams=4):
|
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
-
input = gr.
|
| 26 |
-
output = gr.
|
| 27 |
examples = [f"example{i}.jpg" for i in range(1,7)]
|
| 28 |
|
| 29 |
title = "Image Captioning "
|
|
|
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
+
input = gr.Image(label="Upload any Image", type = 'pil', optional=True)
|
| 26 |
+
output = [gr.Image(label="Processed Image"), gr.Textbox(label="Image Caption")]
|
| 27 |
examples = [f"example{i}.jpg" for i in range(1,7)]
|
| 28 |
|
| 29 |
title = "Image Captioning "
|