NickoSELI commited on
Commit
13978ea
1 Parent(s): 984702d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -24,12 +24,12 @@ def process_image(image):
24
  # Create Gradio Interface
25
  interface = gr.Interface(
26
  fn=process_image,
27
- inputs=gr.inputs.Image(type="numpy", label="Upload Image"),
28
- outputs=gr.outputs.Textbox(label="Caption"),
29
  title="BLIP Image Captioning",
30
  description="Upload an image to get a caption generated by the BLIP model."
31
  )
32
 
33
  # Launch the Gradio app
34
  if __name__ == "__main__":
35
- interface.launch()
 
24
  # Create Gradio Interface
25
  interface = gr.Interface(
26
  fn=process_image,
27
+ inputs=gr.Image(type="numpy", label="Upload Image"),
28
+ outputs=gr.Textbox(label="Caption"),
29
  title="BLIP Image Captioning",
30
  description="Upload an image to get a caption generated by the BLIP model."
31
  )
32
 
33
  # Launch the Gradio app
34
  if __name__ == "__main__":
35
+ interface.launch()