Spaces:
Running
Running
Update app2.py
Browse files
app2.py
CHANGED
|
@@ -108,8 +108,7 @@ def update_header():
|
|
| 108 |
header_button = pn.widgets.Button(name=button_name, button_type = 'primary', button_style = 'outline')
|
| 109 |
header_button.on_click(remove_from_header) # Add callback to remove the header button
|
| 110 |
header_buttons.append(header_button)
|
| 111 |
-
|
| 112 |
-
print("Change in buttons:", paper_list, flush=True)
|
| 113 |
# Update the filter list options to exclude buttons that are already in the header
|
| 114 |
filter_list.options = [option for option in entered_options if option not in buttons_to_add]
|
| 115 |
main_body_instance.main_body = TLDR.update_mainTLDR(buttons_to_add, paper_list)
|
|
|
|
| 108 |
header_button = pn.widgets.Button(name=button_name, button_type = 'primary', button_style = 'outline')
|
| 109 |
header_button.on_click(remove_from_header) # Add callback to remove the header button
|
| 110 |
header_buttons.append(header_button)
|
| 111 |
+
buttons_to_add
|
|
|
|
| 112 |
# Update the filter list options to exclude buttons that are already in the header
|
| 113 |
filter_list.options = [option for option in entered_options if option not in buttons_to_add]
|
| 114 |
main_body_instance.main_body = TLDR.update_mainTLDR(buttons_to_add, paper_list)
|