Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ def generate_caption(input_image):
|
|
| 16 |
|
| 17 |
iface = gr.Interface(
|
| 18 |
fn=generate_caption,
|
| 19 |
-
inputs=gr.Image(),
|
| 20 |
outputs="text",
|
| 21 |
title="Image Captioning",
|
| 22 |
description="Upload an image to generate a caption."
|
|
|
|
| 16 |
|
| 17 |
iface = gr.Interface(
|
| 18 |
fn=generate_caption,
|
| 19 |
+
inputs=gr.Image( type = "pil"),
|
| 20 |
outputs="text",
|
| 21 |
title="Image Captioning",
|
| 22 |
description="Upload an image to generate a caption."
|