Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,8 +49,8 @@ def get_sample_images():
|
|
| 49 |
sample_images = get_sample_images() # Load predefined sample images
|
| 50 |
demo = gr.Interface(
|
| 51 |
fn=generate_caption,
|
| 52 |
-
inputs=gr.
|
| 53 |
-
outputs=gr.
|
| 54 |
examples=sample_images,
|
| 55 |
title="Image Captioning App",
|
| 56 |
description=(
|
|
|
|
| 49 |
sample_images = get_sample_images() # Load predefined sample images
|
| 50 |
demo = gr.Interface(
|
| 51 |
fn=generate_caption,
|
| 52 |
+
inputs=gr.Image(type="file", label="Upload Image"),
|
| 53 |
+
outputs=gr.Textbox(label="Generated Caption"),
|
| 54 |
examples=sample_images,
|
| 55 |
title="Image Captioning App",
|
| 56 |
description=(
|