Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -41,8 +41,24 @@ def search_img(image):
|
|
41 |
with gr.Blocks() as demo:
|
42 |
|
43 |
with gr.Tab("Text search"):
|
44 |
-
|
45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
text_input_text = gr.Textbox(label='Search Query', show_label=True)
|
47 |
text_btn = gr.Button()
|
48 |
|
|
|
41 |
with gr.Blocks() as demo:
|
42 |
|
43 |
with gr.Tab("Text search"):
|
44 |
+
with gr.Column():
|
45 |
+
with gr.Row():
|
46 |
+
with gr.Column():
|
47 |
+
text_output_img_1 = gr.Gallery(height=300, selected_index=0)
|
48 |
+
text_output_text_1 = gr.Textbox(label='Output car model', show_label=True)
|
49 |
+
|
50 |
+
with gr.Column():
|
51 |
+
text_output_img_2 = gr.Gallery(height=300, selected_index=0)
|
52 |
+
text_output_text_2 = gr.Textbox(label='Output car model', show_label=True)
|
53 |
+
|
54 |
+
with gr.Column():
|
55 |
+
text_output_img_3 = gr.Gallery(height=300, selected_index=0)
|
56 |
+
text_output_text_3 = gr.Textbox(label='Output car model', show_label=True)
|
57 |
+
|
58 |
+
with gr.Column():
|
59 |
+
text_output_img_4 = gr.Gallery(visible=False)
|
60 |
+
text_output_text_4 = gr.Textbox(label='Output car model', show_label=True, visible=False)
|
61 |
+
|
62 |
text_input_text = gr.Textbox(label='Search Query', show_label=True)
|
63 |
text_btn = gr.Button()
|
64 |
|