Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -47,12 +47,19 @@ def find_images(query, top_k):
|
|
| 47 |
iface = gr.Interface(
|
| 48 |
fn=find_images,
|
| 49 |
inputs=[
|
| 50 |
-
gr.Textbox(lines=2, placeholder="Enter search text here
|
| 51 |
gr.Slider(10, 50, step=10, value=20, label="Number of images"),
|
| 52 |
],
|
| 53 |
outputs=gr.Gallery(label="Search Results", columns=5, height="auto"),
|
| 54 |
title="Multilingual CLIP Image Search",
|
| 55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
)
|
| 57 |
|
| 58 |
iface.launch()
|
|
|
|
| 47 |
iface = gr.Interface(
|
| 48 |
fn=find_images,
|
| 49 |
inputs=[
|
| 50 |
+
gr.Textbox(lines=2, placeholder="Enter search text here (Shift + Enter to submit)", label="Query"),
|
| 51 |
gr.Slider(10, 50, step=10, value=20, label="Number of images"),
|
| 52 |
],
|
| 53 |
outputs=gr.Gallery(label="Search Results", columns=5, height="auto"),
|
| 54 |
title="Multilingual CLIP Image Search",
|
| 55 |
+
examples=[
|
| 56 |
+
["a red dress", 20],
|
| 57 |
+
["a blue shirt", 20],
|
| 58 |
+
["la blouse rouge", 20],
|
| 59 |
+
["la jupe bleue", 20],
|
| 60 |
+
["punane kleit", 20],
|
| 61 |
+
["sinine särk", 20],
|
| 62 |
+
],
|
| 63 |
)
|
| 64 |
|
| 65 |
iface.launch()
|