Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
23fdce3
1
Parent(s):
9c63bd6
Update format_search_results to return additional papers alongside data and headers
Browse files
app.py
CHANGED
@@ -471,7 +471,7 @@ def format_search_results(abstract: str) -> dict:
|
|
471 |
|
472 |
headers = ["Title", "Authors", "Categories", "Date", "Match Score", "ID"]
|
473 |
|
474 |
-
return {"data": data, "headers": headers}
|
475 |
|
476 |
|
477 |
def format_paper_as_markdown(paper: dict) -> str:
|
|
|
471 |
|
472 |
headers = ["Title", "Authors", "Categories", "Date", "Match Score", "ID"]
|
473 |
|
474 |
+
return {"data": data, "headers": headers}, papers
|
475 |
|
476 |
|
477 |
def format_paper_as_markdown(paper: dict) -> str:
|