Spaces:
Running
Running
Update TLDR.py
Browse files
TLDR.py
CHANGED
|
@@ -44,7 +44,7 @@ def run_code(category, loaded_dict, event = None):
|
|
| 44 |
|
| 45 |
|
| 46 |
def update_mainTLDR(buttons_to_add, paper_list):
|
| 47 |
-
|
| 48 |
|
| 49 |
if buttons_to_add:
|
| 50 |
for i in range(len(buttons_to_add)):
|
|
@@ -72,10 +72,10 @@ def update_mainTLDR(buttons_to_add, paper_list):
|
|
| 72 |
sizing_mode='stretch_width'
|
| 73 |
)
|
| 74 |
|
| 75 |
-
# Add the category column to the
|
| 76 |
-
|
| 77 |
|
| 78 |
else:
|
| 79 |
-
|
| 80 |
|
| 81 |
-
return
|
|
|
|
| 44 |
|
| 45 |
|
| 46 |
def update_mainTLDR(buttons_to_add, paper_list):
|
| 47 |
+
main_column = pn.Column()
|
| 48 |
|
| 49 |
if buttons_to_add:
|
| 50 |
for i in range(len(buttons_to_add)):
|
|
|
|
| 72 |
sizing_mode='stretch_width'
|
| 73 |
)
|
| 74 |
|
| 75 |
+
# Add the category column to the main_column
|
| 76 |
+
main_column.append(category_column)
|
| 77 |
|
| 78 |
else:
|
| 79 |
+
main_column.append(pn.pane.Markdown("# Please select some tags!"))
|
| 80 |
|
| 81 |
+
return main_column
|