Update app.py
Browse files
app.py
CHANGED
@@ -13,6 +13,6 @@ def generate_caption(image):
|
|
13 |
|
14 |
# Setup the Gradio interface
|
15 |
interface = gr.Interface(fn=generate_caption,
|
16 |
-
inputs=gr.
|
17 |
-
outputs=gr.
|
18 |
interface.launch()
|
|
|
13 |
|
14 |
# Setup the Gradio interface
|
15 |
interface = gr.Interface(fn=generate_caption,
|
16 |
+
inputs=gr.components.Image(type="pil", label="Upload an Image"),
|
17 |
+
outputs=gr.components.Textbox(label="Generated Caption"))
|
18 |
interface.launch()
|