EasySci commited on
Commit
70e3528
·
1 Parent(s): 2e79090

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +2 -2
app2.py CHANGED
@@ -107,10 +107,10 @@ def update_header():
107
  header_button = pn.widgets.Button(name=button_name, button_type = 'primary', button_style = 'outline')
108
  header_button.on_click(remove_from_header) # Add callback to remove the header button
109
  header_buttons.append(header_button)
110
-
111
  # Update the filter list options to exclude buttons that are already in the header
112
  filter_list.options = [option for option in entered_options if option not in buttons_to_add]
113
- main_body_instance.main_body = TLDR.update_mainTLDR(filter_list.options, paper_list)
114
 
115
  # Callback to remove the clicked header button
116
  def remove_from_header(event):
 
107
  header_button = pn.widgets.Button(name=button_name, button_type = 'primary', button_style = 'outline')
108
  header_button.on_click(remove_from_header) # Add callback to remove the header button
109
  header_buttons.append(header_button)
110
+ print("Change in buttons:", buttons_to_add)
111
  # Update the filter list options to exclude buttons that are already in the header
112
  filter_list.options = [option for option in entered_options if option not in buttons_to_add]
113
+ main_body_instance.main_body = TLDR.update_mainTLDR(buttons_to_add, paper_list)
114
 
115
  # Callback to remove the clicked header button
116
  def remove_from_header(event):