Update app.py
Browse files
app.py
CHANGED
@@ -98,12 +98,15 @@ def find_best_matches(image, mode, text):
|
|
98 |
|
99 |
|
100 |
gr.Interface(fn=find_best_matches,
|
101 |
-
|
102 |
gr.Image(label="Image to search"),
|
103 |
gr.Radio([T2I, I2I]),
|
104 |
gr.Textbox(lines=1, label="Text query", placeholder="Introduce the search text...",
|
105 |
)],
|
106 |
theme="grass",
|
107 |
-
outputs=[gr.Gallery(label="Generated images", show_label=False, elem_id="gallery")],
|
108 |
-
|
|
|
|
|
|
|
109 |
|
|
|
98 |
|
99 |
|
100 |
gr.Interface(fn=find_best_matches,
|
101 |
+
inputs=[
|
102 |
gr.Image(label="Image to search"),
|
103 |
gr.Radio([T2I, I2I]),
|
104 |
gr.Textbox(lines=1, label="Text query", placeholder="Introduce the search text...",
|
105 |
)],
|
106 |
theme="grass",
|
107 |
+
outputs=[gr.Gallery(label="Generated images", show_label=False, elem_id="gallery")],
|
108 |
+
enable_queue=True,
|
109 |
+
title="CLIP Image Search",
|
110 |
+
description="This application displays TOP THREE images from Unsplash dataset that best match the search query provided by the user. Moreover, the input can be provided via two modes ie text or image form."
|
111 |
+
).launch()
|
112 |
|