Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -108,7 +108,7 @@ def caption(img, min_len, max_len):
|
|
| 108 |
iface= gr.Interface(fn=caption,
|
| 109 |
title='Blip Image Captioning Large',
|
| 110 |
description="._.",
|
| 111 |
-
inputs=[gr.Image(type='filepath', label='Image'), gr.Slider(label='
|
| 112 |
outputs=gr.Textbox(label='Caption', show_copy_button=True),
|
| 113 |
theme = gr.themes.Base(primary_hue="teal",secondary_hue="teal",neutral_hue="slate"),)
|
| 114 |
iface.launch()
|
|
|
|
| 108 |
iface= gr.Interface(fn=caption,
|
| 109 |
title='Blip Image Captioning Large',
|
| 110 |
description="._.",
|
| 111 |
+
inputs=[gr.Image(type='filepath', label='Image'), gr.Slider(label='Maximum Length', minimum=1, maximum=1000, value=100)],
|
| 112 |
outputs=gr.Textbox(label='Caption', show_copy_button=True),
|
| 113 |
theme = gr.themes.Base(primary_hue="teal",secondary_hue="teal",neutral_hue="slate"),)
|
| 114 |
iface.launch()
|