Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -238,9 +238,10 @@ with gr.Blocks(css=".gr-dropdown { max-height: 100px; overflow-y: auto; font-siz
|
|
238 |
language_filter = gr.Dropdown(label="Filter by Language", choices=["All", "English", "French", "Spanish", "German", "Portuguese", "Chinese", "Arabic", "Hindi"], value="All")
|
239 |
table_html = gr.HTML(label="Matching Participants")
|
240 |
|
241 |
-
|
242 |
-
|
243 |
-
|
|
|
244 |
|
245 |
|
246 |
submit_btn.click(
|
|
|
238 |
language_filter = gr.Dropdown(label="Filter by Language", choices=["All", "English", "French", "Spanish", "German", "Portuguese", "Chinese", "Arabic", "Hindi"], value="All")
|
239 |
table_html = gr.HTML(label="Matching Participants")
|
240 |
|
241 |
+
country_filter.change(fn=update_city_filter, inputs=[country_filter], outputs=[city_filter])
|
242 |
+
country_filter.change(fn=filter_by_fields, inputs=[country_filter, city_filter, language_filter], outputs=[table_html])
|
243 |
+
city_filter.change(fn=filter_by_fields, inputs=[country_filter, city_filter, language_filter], outputs=[table_html])
|
244 |
+
language_filter.change(fn=filter_by_fields, inputs=[country_filter, city_filter, language_filter], outputs=[table_html])
|
245 |
|
246 |
|
247 |
submit_btn.click(
|