prithivMLmods commited on
Commit
c0d0ba9
·
verified ·
1 Parent(s): b7822ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,13 +23,13 @@ def greet(img, min_len, max_len):
23
  result = result + '\n' + total_time + ' seconds'
24
  return result
25
 
26
- iface = gr.Interface(fn=greet,
27
  title='Image Captioning with BLIP',
28
  description="Generate captions for images using the BLIP model.",
29
  inputs=[gr.Image(type='filepath', label='Image'),
30
  gr.Slider(label='Minimum Length', minimum=1, maximum=1000, value=30),
31
  gr.Slider(label='Maximum Length', minimum=1, maximum=1000, value=100)],
32
- outputs=gr.Textbox(label='Caption')
33
 
34
  # Add examples
35
  iface.examples = [
 
23
  result = result + '\n' + total_time + ' seconds'
24
  return result
25
 
26
+ iface = gr.Interface(fn=greet,
27
  title='Image Captioning with BLIP',
28
  description="Generate captions for images using the BLIP model.",
29
  inputs=[gr.Image(type='filepath', label='Image'),
30
  gr.Slider(label='Minimum Length', minimum=1, maximum=1000, value=30),
31
  gr.Slider(label='Maximum Length', minimum=1, maximum=1000, value=100)],
32
+ outputs=gr.Textbox(label='Caption'))
33
 
34
  # Add examples
35
  iface.examples = [