Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -47,8 +47,24 @@ iface = gr.Interface(
|
|
47 |
fn=generate_image,
|
48 |
inputs="text",
|
49 |
outputs="image",
|
50 |
-
|
51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
)
|
53 |
|
54 |
# Executa o servidor Gradio
|
|
|
47 |
fn=generate_image,
|
48 |
inputs="text",
|
49 |
outputs="image",
|
50 |
+
examples=[
|
51 |
+
["page", "a page of text about segmentation", "assets/images/page.png"],
|
52 |
+
["chelsea", "a facial photo of a tabby cat", "assets/images/chelsea.png"],
|
53 |
+
["astronaut", "a portrait of an astronaut with the American flag", "assets/images/astronaut.png"],
|
54 |
+
["rocket", "a rocket standing on a launchpad", "assets/images/rocket.png"],
|
55 |
+
["motorcycle_right", "a red motorcycle standing in a garage", "assets/images/motorcycle_right.png"],
|
56 |
+
["camera", "a person looking at a camera on a tripod", "assets/images/camera.png"],
|
57 |
+
["horse", "a black-and-white silhouette of a horse", "assets/images/horse.png"],
|
58 |
+
["coffee", "a cup of coffee on a saucer", "assets/images/coffee.png"]
|
59 |
+
]
|
60 |
+
title="Find the image most similar to the given text",
|
61 |
+
description='''<p>
|
62 |
+
Welcome to a straightforward demonstration of ImageBind, a powerful tool designed to
|
63 |
+
find the image most similar to a given text using cosine similarity. For a comprehensive
|
64 |
+
understanding of its capabilities, we encourage you to explore the original research <a href='https://arxiv.org/abs/2305.05665' target='_blank'>paper</a>
|
65 |
+
and visit the <a href='https://github.com/facebookresearch/ImageBind' target='_blank'>repository</a>
|
66 |
+
for more in-depth information.<p>
|
67 |
+
'''
|
68 |
)
|
69 |
|
70 |
# Executa o servidor Gradio
|