Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def predict(image,max_length=64, num_beams=4):
|
|
25 |
gradio_app = gr.Interface(
|
26 |
fn=predict,
|
27 |
inputs=gr.Image(label="Select image for captioning", sources=['upload', 'webcam'], type="pil"),
|
28 |
-
outputs=[gr.
|
29 |
examples = [f"example{i}.jpg" for i in range(1,7)],
|
30 |
title="Image Captioning with our model",
|
31 |
)
|
|
|
25 |
gradio_app = gr.Interface(
|
26 |
fn=predict,
|
27 |
inputs=gr.Image(label="Select image for captioning", sources=['upload', 'webcam'], type="pil"),
|
28 |
+
outputs=[gr.Textbox(label="Image Caption")],
|
29 |
examples = [f"example{i}.jpg" for i in range(1,7)],
|
30 |
title="Image Captioning with our model",
|
31 |
)
|