Pravalika56 commited on
Commit
8bbfc13
·
verified ·
1 Parent(s): 013f2c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ def generate_caption(input_image):
16
 
17
  iface = gr.Interface(
18
  fn=generate_caption,
19
- inputs=gr.Image(),
20
  outputs="text",
21
  title="Image Captioning",
22
  description="Upload an image to generate a caption."
 
16
 
17
  iface = gr.Interface(
18
  fn=generate_caption,
19
+ inputs=gr.Image( type = "pil"),
20
  outputs="text",
21
  title="Image Captioning",
22
  description="Upload an image to generate a caption."