Update app.py
Browse files
app.py
CHANGED
@@ -42,13 +42,11 @@ def gradio_interface(query_text):
|
|
42 |
with gr.Blocks() as app:
|
43 |
gr.Markdown("<h1>White Stride Red Search (GTE-Qwen2)</h1>")
|
44 |
|
45 |
-
#
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
# Search button next to the text box
|
51 |
-
search_button = gr.Button("Search")
|
52 |
|
53 |
# Output table for displaying results
|
54 |
search_output = gr.DataFrame(label="Search Results")
|
@@ -57,5 +55,6 @@ with gr.Blocks() as app:
|
|
57 |
search_button.click(fn=gradio_interface, inputs=search_input, outputs=search_output)
|
58 |
|
59 |
|
|
|
60 |
# Launch the Gradio app
|
61 |
app.launch()
|
|
|
42 |
with gr.Blocks() as app:
|
43 |
gr.Markdown("<h1>White Stride Red Search (GTE-Qwen2)</h1>")
|
44 |
|
45 |
+
# Input text box for the search query
|
46 |
+
search_input = gr.Textbox(label="Search Query", placeholder="Enter search text", interactive=True)
|
47 |
+
|
48 |
+
# Search button below the text box
|
49 |
+
search_button = gr.Button("Search")
|
|
|
|
|
50 |
|
51 |
# Output table for displaying results
|
52 |
search_output = gr.DataFrame(label="Search Results")
|
|
|
55 |
search_button.click(fn=gradio_interface, inputs=search_input, outputs=search_output)
|
56 |
|
57 |
|
58 |
+
|
59 |
# Launch the Gradio app
|
60 |
app.launch()
|