Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ def caption_image(image):
|
|
| 14 |
caption = processor.decode(out[0], skip_special_tokens=True)
|
| 15 |
return caption
|
| 16 |
|
| 17 |
-
image_input = gr.inputs.Image()
|
| 18 |
-
caption_output = gr.outputs.Textbox()
|
| 19 |
|
| 20 |
-
|
|
|
|
|
|
|
|
|
| 14 |
caption = processor.decode(out[0], skip_special_tokens=True)
|
| 15 |
return caption
|
| 16 |
|
|
|
|
|
|
|
| 17 |
|
| 18 |
+
|
| 19 |
+
gr.Interface(caption_image, gr.inputs.Image(), "text").launch()
|
| 20 |
+
# gr.Interface(caption_image, image_input, caption_output).launch()
|