wenjiao commited on
Commit
b7d7354
1 Parent(s): 87ac4fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -311,11 +311,11 @@ def select(df, data: gr.SelectData):
311
  selected_values[text_content] = value
312
 
313
  print('selected_values', selected_values, selected_indices)
314
- return gr.CheckboxGroup(list(selected_values.keys()))
315
 
316
  def init_comparison_data():
317
  global selected_values
318
- return gr.CheckboxGroup(list(selected_values.keys()))
319
 
320
  def generate_spider_chart(df, selected_keys):
321
  global selected_values
 
311
  selected_values[text_content] = value
312
 
313
  print('selected_values', selected_values, selected_indices)
314
+ return gr.CheckboxGroup(list(selected_values.keys()), value=list(selected_values.keys()))
315
 
316
  def init_comparison_data():
317
  global selected_values
318
+ return gr.CheckboxGroup(list(selected_values.keys()), value=list(selected_values.keys()))
319
 
320
  def generate_spider_chart(df, selected_keys):
321
  global selected_values