Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,6 +14,6 @@ def generate_caption(image):
|
|
14 |
|
15 |
return generated_caption
|
16 |
|
17 |
-
# Create a
|
18 |
-
demo = gr.Interface(fn=generate_caption, inputs=gr.Image(
|
19 |
-
demo.launch()
|
|
|
14 |
|
15 |
return generated_caption
|
16 |
|
17 |
+
# Create a Gradio interface with an image input and a textbox output
|
18 |
+
demo = gr.Interface(fn=generate_caption, inputs=gr.Image(), outputs=gr.Textbox(label="Generated caption"))
|
19 |
+
demo.launch()
|