Spaces:
Sleeping
Sleeping
Update TLDR.py
Browse files
TLDR.py
CHANGED
|
@@ -66,21 +66,19 @@ def update_mainTLDR(buttons_to_add, paper_list):
|
|
| 66 |
# Check if any categories are selected
|
| 67 |
if buttons_to_add:
|
| 68 |
for i in range(len(buttons_to_add)):
|
| 69 |
-
# Generate
|
| 70 |
category_content = []
|
| 71 |
for paper in paper_list[i]:
|
| 72 |
paper_title = pn.pane.LaTeX(f"## {paper.title}")
|
| 73 |
-
paper_tldr = pn.pane.
|
| 74 |
paper_date = "### " + (paper.published).strftime("%d/%m/%Y %H:%M:%S")
|
| 75 |
|
| 76 |
-
# Create a
|
| 77 |
-
paper_content = pn.
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
),
|
| 83 |
-
sizing_mode='stretch_width',
|
| 84 |
)
|
| 85 |
category_content.append(paper_content)
|
| 86 |
|
|
|
|
| 66 |
# Check if any categories are selected
|
| 67 |
if buttons_to_add:
|
| 68 |
for i in range(len(buttons_to_add)):
|
| 69 |
+
# Generate content for each selected category
|
| 70 |
category_content = []
|
| 71 |
for paper in paper_list[i]:
|
| 72 |
paper_title = pn.pane.LaTeX(f"## {paper.title}")
|
| 73 |
+
paper_tldr = pn.pane.Markdown(paper.summary)
|
| 74 |
paper_date = "### " + (paper.published).strftime("%d/%m/%Y %H:%M:%S")
|
| 75 |
|
| 76 |
+
# Create a Column to hold each paper's content
|
| 77 |
+
paper_content = pn.Column(
|
| 78 |
+
paper_title,
|
| 79 |
+
paper_tldr,
|
| 80 |
+
pn.pane.Markdown(paper_date), # No LaTeX equation in date
|
| 81 |
+
sizing_mode='stretch_width'
|
|
|
|
|
|
|
| 82 |
)
|
| 83 |
category_content.append(paper_content)
|
| 84 |
|