Jangai commited on
Commit
5342f17
·
verified ·
1 Parent(s): a2142f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.inputs.Image(label="Upload an Image", type="pil"),
17
- outputs=gr.outputs.Textbox(label="Generated Caption"))
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()