sam749 commited on
Commit
72bbd2c
·
verified ·
1 Parent(s): b2d5a8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ def generate_captions(images, max_length=200):
20
  def generate_caption(image, max_length=200):
21
  return generate_captions([image], max_length)[0]
22
 
23
- image_input = gr.Image(source="upload", type="pil", label="Upload Image", height=400)
24
  max_length_slider = gr.Slider(minimum=10, maximum=400, value=200, step=8, label="Max Length")
25
  caption_output = gr.Textbox(label="Generated Caption")
26
 
 
20
  def generate_caption(image, max_length=200):
21
  return generate_captions([image], max_length)[0]
22
 
23
+ image_input = gr.Image(type="pil", label="Upload Image", height=400)
24
  max_length_slider = gr.Slider(minimum=10, maximum=400, value=200, step=8, label="Max Length")
25
  caption_output = gr.Textbox(label="Generated Caption")
26