Spaces:
Build error
Build error
Update app.py
Browse files
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(
|
| 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 |
|