pufanyi commited on
Commit
ff466fd
1 Parent(s): df935d2

Refactor init_leaderboard function to update data outputs to df

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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=data)
112
- research_textbox.submit(update_data, inputs=[selected_subset, research_textbox, selected_columns], outputs=data)
113
- selected_columns.change(update_data, inputs=[selected_subset, research_textbox, selected_columns], outputs=data)
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,