Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -140,8 +140,8 @@ sample_images = [
|
|
| 140 |
# Define Gradio interface
|
| 141 |
interface = gr.Interface(
|
| 142 |
fn=generate_caption,
|
| 143 |
-
inputs=gr.Image(
|
| 144 |
-
outputs=
|
| 145 |
examples=sample_images,
|
| 146 |
title="Image Captioning Model",
|
| 147 |
description="Upload an image, select a sample image, or use your webcam to take a photo and generate a caption."
|
|
|
|
| 140 |
# Define Gradio interface
|
| 141 |
interface = gr.Interface(
|
| 142 |
fn=generate_caption,
|
| 143 |
+
inputs=gr.inputs.Image(tool="editor", label="Upload an image or take a photo"), # Corrected usage
|
| 144 |
+
outputs="text",
|
| 145 |
examples=sample_images,
|
| 146 |
title="Image Captioning Model",
|
| 147 |
description="Upload an image, select a sample image, or use your webcam to take a photo and generate a caption."
|