KoonJamesZ commited on
Commit
5cafae6
·
verified ·
1 Parent(s): 51f0842

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
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
- # Row to align the text box and button horizontally
46
- with gr.Row():
47
- # Input text box for the search query
48
- search_input = gr.Textbox(label="Search Query", placeholder="Enter search text", interactive=True)
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()