darshan8950 commited on
Commit
7eda7d2
·
1 Parent(s): 45abd4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -23,9 +23,9 @@ def generate_caption(image_file):
23
  return captions[0]
24
 
25
  # Set up the Gradio interface
26
- inputs = gr.inputs.Image(type="pil",label="Image")
27
- outputs = gr.Textbox(label="Captions")
28
- interface = gr.Interface(fn=generate_caption, inputs=inputs, outputs=outputs, title="Blip-Caption")
29
 
30
  # Launch the interface
31
  interface.launch()
 
23
  return captions[0]
24
 
25
  # Set up the Gradio interface
26
+ #inputs = gr.inputs.Image(type="pil",label="Image")
27
+ #outputs = gr.Textbox(label="Captions")
28
+ interface = gr.Interface(fn=generate_caption, inputs="image", outputs="text", title="Blip-Caption")
29
 
30
  # Launch the interface
31
  interface.launch()