Spaces:
Running
Running
Update app2.py
Browse files
app2.py
CHANGED
|
@@ -52,6 +52,8 @@ add_to_header_button = pn.widgets.Button(name="", icon='search', icon_size='1.5e
|
|
| 52 |
# List to store the names of buttons to be added to the header
|
| 53 |
buttons_to_add = []
|
| 54 |
|
|
|
|
|
|
|
| 55 |
# Callback for adding selected options to the list
|
| 56 |
def add_to_header(event):
|
| 57 |
global paper_list
|
|
@@ -61,8 +63,9 @@ def add_to_header(event):
|
|
| 61 |
for option in selected_options:
|
| 62 |
if option not in buttons_to_add: # Check if option is already in header
|
| 63 |
buttons_to_add.append(option) # Add to header if not already present
|
|
|
|
|
|
|
| 64 |
filter_list.value = [] # Clear the selected options after adding them to the header
|
| 65 |
-
paper_list = TLDR.run_code(buttons_to_add, arxiv_tags)
|
| 66 |
update_header() # Update the header after adding options
|
| 67 |
|
| 68 |
|
|
|
|
| 52 |
# List to store the names of buttons to be added to the header
|
| 53 |
buttons_to_add = []
|
| 54 |
|
| 55 |
+
paper_list = []
|
| 56 |
+
|
| 57 |
# Callback for adding selected options to the list
|
| 58 |
def add_to_header(event):
|
| 59 |
global paper_list
|
|
|
|
| 63 |
for option in selected_options:
|
| 64 |
if option not in buttons_to_add: # Check if option is already in header
|
| 65 |
buttons_to_add.append(option) # Add to header if not already present
|
| 66 |
+
paper_list_itr = TLDR.run_code(buttons_to_add, arxiv_tags)
|
| 67 |
+
paper_list.append(paper_list_itr)
|
| 68 |
filter_list.value = [] # Clear the selected options after adding them to the header
|
|
|
|
| 69 |
update_header() # Update the header after adding options
|
| 70 |
|
| 71 |
|