maringetxway commited on
Commit
6032140
·
verified ·
1 Parent(s): 156531b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -238,6 +238,11 @@ 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
  submit_btn.click(
242
  fn=submit_profile,
243
  inputs=[name, discord, city, country, address, looking, onlinecheck, languages, laptop, robot, skills, describe3, experience, idea],
@@ -258,10 +263,6 @@ def download_csv(code):
258
  df.to_csv(csv_path, index=False)
259
  return csv_path
260
 
261
-
262
- country_filter.change(fn=update_city_filter, inputs=[country_filter], outputs=[city_filter])
263
- for dropdown in [country_filter, city_filter, language_filter]:
264
- dropdown.change(fn=filter_by_fields, inputs=[country_filter, city_filter, language_filter], outputs=[table_html])
265
 
266
 
267
 
 
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(
247
  fn=submit_profile,
248
  inputs=[name, discord, city, country, address, looking, onlinecheck, languages, laptop, robot, skills, describe3, experience, idea],
 
263
  df.to_csv(csv_path, index=False)
264
  return csv_path
265
 
 
 
 
 
266
 
267
 
268