annie08 commited on
Commit
d10e834
·
1 Parent(s): 0cb8d44
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,10 +27,10 @@ def generate_caption(image):
27
  # Define the Gradio interface
28
  iface = gr.Interface(
29
  fn=generate_caption, # The function that generates captions
30
- inputs=gr.inputs.Image(type="pil"), # Accept an image input
31
  outputs="text", # Output a text caption
32
  title="Image Captioning Model",
33
  description="Upload an image, and the model will generate a caption describing it."
34
  )
35
 
36
- iface.launch()
 
27
  # Define the Gradio interface
28
  iface = gr.Interface(
29
  fn=generate_caption, # The function that generates captions
30
+ inputs=gr.Image(type="pil"), # Accept an image input
31
  outputs="text", # Output a text caption
32
  title="Image Captioning Model",
33
  description="Upload an image, and the model will generate a caption describing it."
34
  )
35
 
36
+ iface.launch(share=True)