Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -80,13 +80,13 @@ with gr.Blocks() as demo:
|
|
| 80 |
|
| 81 |
with gr.Tab("Image Search"):
|
| 82 |
img_in = gr.Image(type="pil")
|
| 83 |
-
img_out = gr.Gallery(label="Top 3 Results"
|
| 84 |
btn1 = gr.Button("Search")
|
| 85 |
btn1.click(fn=gradio_image_search, inputs=img_in, outputs=img_out)
|
| 86 |
|
| 87 |
with gr.Tab("Text Search"):
|
| 88 |
txt_in = gr.Textbox(label="e.g. 'pet', 'bug', 'farm animal'")
|
| 89 |
-
txt_out = gr.Gallery(label="Top 3 Results"
|
| 90 |
btn2 = gr.Button("Search")
|
| 91 |
btn2.click(fn=gradio_text_search, inputs=txt_in, outputs=txt_out)
|
| 92 |
|
|
|
|
| 80 |
|
| 81 |
with gr.Tab("Image Search"):
|
| 82 |
img_in = gr.Image(type="pil")
|
| 83 |
+
img_out = gr.Gallery(label="Top 3 Results", columns=3)
|
| 84 |
btn1 = gr.Button("Search")
|
| 85 |
btn1.click(fn=gradio_image_search, inputs=img_in, outputs=img_out)
|
| 86 |
|
| 87 |
with gr.Tab("Text Search"):
|
| 88 |
txt_in = gr.Textbox(label="e.g. 'pet', 'bug', 'farm animal'")
|
| 89 |
+
txt_out = gr.Gallery(label="Top 3 Results", columns=3)
|
| 90 |
btn2 = gr.Button("Search")
|
| 91 |
btn2.click(fn=gradio_text_search, inputs=txt_in, outputs=txt_out)
|
| 92 |
|