maringetxway commited on
Commit
11bbce2
·
verified ·
1 Parent(s): 6032140

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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
- country_filter.change(fn=update_city_filter, inputs=[country_filter], outputs=[city_filter])
242
- for dropdown in [country_filter, city_filter, language_filter]:
243
- dropdown.change(fn=filter_by_fields, inputs=[country_filter, city_filter, language_filter], outputs=[table_html])
 
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(