Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,4 +35,4 @@ image_input = gr.inputs.Image(type="pil")
|
|
| 35 |
caption_output = gr.outputs.Textbox(label="Caption Output")
|
| 36 |
caption_interface = gr.Interface(fn=inference_caption, inputs=image_input, outputs=caption_output, capture_session=True, title="CoCa: Contrastive Captioners", description="An open source implementation of CoCa: Contrastive Captioners are Image-Text Foundation Models.", examples=[path.as_posix() for path in sorted(pathlib.Path("images").glob("*.jpg"))], allow_flagging=False)
|
| 37 |
|
| 38 |
-
caption_interface.launch(
|
|
|
|
| 35 |
caption_output = gr.outputs.Textbox(label="Caption Output")
|
| 36 |
caption_interface = gr.Interface(fn=inference_caption, inputs=image_input, outputs=caption_output, capture_session=True, title="CoCa: Contrastive Captioners", description="An open source implementation of CoCa: Contrastive Captioners are Image-Text Foundation Models.", examples=[path.as_posix() for path in sorted(pathlib.Path("images").glob("*.jpg"))], allow_flagging=False)
|
| 37 |
|
| 38 |
+
caption_interface.launch()
|