EasySci commited on
Commit
3a5fa89
·
1 Parent(s): 2ac0581

Update TLDR.py

Browse files
Files changed (1) hide show
  1. TLDR.py +5 -5
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
- main_tldr = []
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 main_tldr list
76
- main_tldr.append(category_column)
77
 
78
  else:
79
- main_tldr.append(pn.pane.Markdown("# Please select some tags!"))
80
 
81
- return main_tldr
 
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