Spaces:
Running
Running
Refactor init_leaderboard function to update data outputs to df
Browse files
app.py
CHANGED
@@ -108,9 +108,9 @@ def init_leaderboard(dataframes):
|
|
108 |
# concurrency_limit=20,
|
109 |
# )
|
110 |
|
111 |
-
selected_subset.change(update_data, inputs=[selected_subset, research_textbox, selected_columns], outputs=
|
112 |
-
research_textbox.submit(update_data, inputs=[selected_subset, research_textbox, selected_columns], outputs=
|
113 |
-
selected_columns.change(update_data, inputs=[selected_subset, research_textbox, selected_columns], outputs=
|
114 |
|
115 |
# return Leaderboard(
|
116 |
# value=dataframes,
|
|
|
108 |
# concurrency_limit=20,
|
109 |
# )
|
110 |
|
111 |
+
selected_subset.change(update_data, inputs=[selected_subset, research_textbox, selected_columns], outputs=df)
|
112 |
+
research_textbox.submit(update_data, inputs=[selected_subset, research_textbox, selected_columns], outputs=df)
|
113 |
+
selected_columns.change(update_data, inputs=[selected_subset, research_textbox, selected_columns], outputs=df)
|
114 |
|
115 |
# return Leaderboard(
|
116 |
# value=dataframes,
|