Spaces:
Running
Running
Refactor init_leaderboard function to update data outputs to dataframe and improve dropdown UI
Browse files
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
|
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)
|