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