Spaces:
Sleeping
Sleeping
add duplicate spaces badge
Browse files
app.py
CHANGED
@@ -22,14 +22,20 @@ def output_generate(image):
|
|
22 |
|
23 |
paths = sorted(pathlib.Path("images").glob("*.jpg"))
|
24 |
|
|
|
|
|
25 |
iface = gr.Interface(
|
26 |
fn=output_generate,
|
27 |
inputs=gr.Image(label="Input image", type="pil"),
|
28 |
outputs=gr.Text(label="Caption output"),
|
29 |
title="CoCa: Contrastive Captioners",
|
30 |
description=(
|
31 |
-
"An open source implementation of **CoCa: Contrastive Captioners are Image-Text Foundation Models** https://arxiv.org/abs/2205.01917
|
32 |
-
|
|
|
|
|
|
|
|
|
33 |
),
|
34 |
examples=[path.as_posix() for path in paths],
|
35 |
)
|
|
|
22 |
|
23 |
paths = sorted(pathlib.Path("images").glob("*.jpg"))
|
24 |
|
25 |
+
|
26 |
+
|
27 |
iface = gr.Interface(
|
28 |
fn=output_generate,
|
29 |
inputs=gr.Image(label="Input image", type="pil"),
|
30 |
outputs=gr.Text(label="Caption output"),
|
31 |
title="CoCa: Contrastive Captioners",
|
32 |
description=(
|
33 |
+
"""<p>An open source implementation of **CoCa: Contrastive Captioners are Image-Text Foundation Models** https://arxiv.org/abs/2205.01917.</p><br/>
|
34 |
+
<p>Built using [open_clip](https://github.com/mlfoundations/open_clip) with an effort from [LAION](https://laion.ai/).</p><br/>
|
35 |
+
<p>For faster inference without waiting in queue, you may duplicate the space and upgrade to GPU in settings.<br/>
|
36 |
+
<a href="https://huggingface.co/spaces/hysts/TEXTure?duplicate=true">
|
37 |
+
<img style="margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>
|
38 |
+
</p>"""
|
39 |
),
|
40 |
examples=[path.as_posix() for path in paths],
|
41 |
)
|