Update app.py
Browse files
app.py
CHANGED
|
@@ -24,13 +24,12 @@ def generate_caption(image):
|
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
-
|
| 28 |
# Gradio interface
|
| 29 |
|
| 30 |
demo = gr.Interface(
|
| 31 |
fn=generate_caption,
|
| 32 |
inputs=gr.Image(type="pil", label="Upload Image"),
|
| 33 |
-
outputs=gr.
|
| 34 |
examples=[image1, image2, image3],
|
| 35 |
title="Image Captioning App",
|
| 36 |
description=(
|
|
|
|
| 24 |
|
| 25 |
|
| 26 |
|
|
|
|
| 27 |
# Gradio interface
|
| 28 |
|
| 29 |
demo = gr.Interface(
|
| 30 |
fn=generate_caption,
|
| 31 |
inputs=gr.Image(type="pil", label="Upload Image"),
|
| 32 |
+
outputs=gr.Textbox(label="Generated Caption"),
|
| 33 |
examples=[image1, image2, image3],
|
| 34 |
title="Image Captioning App",
|
| 35 |
description=(
|