pufanyi commited on
Commit
8a1669a
1 Parent(s): ce8a069

Refactor init_leaderboard function to update data outputs to dataframe and improve dropdown UI

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -97,8 +97,7 @@ def init_leaderboard(dataframes):
97
  selected_subset.choices = subsets
98
  return update_data(subset, research_textbox, selected_columns)
99
 
100
- def update_data(subset, search_term: Textbox, selected_columns: CheckboxGroup):
101
- search_term = search_term.value
102
  selected_columns = selected_columns.value
103
  print(subset)
104
  print(search_term)
 
97
  selected_subset.choices = subsets
98
  return update_data(subset, research_textbox, selected_columns)
99
 
100
+ def update_data(subset, search_term, selected_columns: CheckboxGroup):
 
101
  selected_columns = selected_columns.value
102
  print(subset)
103
  print(search_term)