Spaces:
Sleeping
Sleeping
jialicheng
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -148,6 +148,8 @@ with gr.Blocks() as demo:
|
|
148 |
# Year range slider
|
149 |
min_year_slider = gr.Slider(minimum=2015, maximum=current_year, value=2020, label="Select Min Year", step=1)
|
150 |
max_year_slider = gr.Slider(minimum=2015, maximum=current_year, value=current_year, label="Select Max Year", step=1)
|
|
|
|
|
151 |
|
152 |
with gr.Column(scale=3): # Output section (wider)
|
153 |
# Output table
|
@@ -157,7 +159,7 @@ with gr.Blocks() as demo:
|
|
157 |
)
|
158 |
|
159 |
# Link the input components to the output function
|
160 |
-
|
161 |
search,
|
162 |
inputs=[textbox, checkbox, min_year_slider, max_year_slider],
|
163 |
outputs=output_table
|
|
|
148 |
# Year range slider
|
149 |
min_year_slider = gr.Slider(minimum=2015, maximum=current_year, value=2020, label="Select Min Year", step=1)
|
150 |
max_year_slider = gr.Slider(minimum=2015, maximum=current_year, value=current_year, label="Select Max Year", step=1)
|
151 |
+
|
152 |
+
submit_button = gr.Button("Search")
|
153 |
|
154 |
with gr.Column(scale=3): # Output section (wider)
|
155 |
# Output table
|
|
|
159 |
)
|
160 |
|
161 |
# Link the input components to the output function
|
162 |
+
submit_button.click(
|
163 |
search,
|
164 |
inputs=[textbox, checkbox, min_year_slider, max_year_slider],
|
165 |
outputs=output_table
|