Spaces:
Sleeping
Sleeping
Commit
·
076a043
1
Parent(s):
b95ae99
Update app.py
Browse files
app.py
CHANGED
@@ -62,8 +62,8 @@ def get_documents(category: str, min_date: datetime, max_date: datetime):
|
|
62 |
docs = [Document(
|
63 |
page_content=doc.summary,
|
64 |
metadata={
|
65 |
-
"authors": doc.authors,
|
66 |
-
"categories": doc.categories,
|
67 |
"id": doc.get_short_id(),
|
68 |
"title": doc.title,
|
69 |
}
|
|
|
62 |
docs = [Document(
|
63 |
page_content=doc.summary,
|
64 |
metadata={
|
65 |
+
"authors": ", ".join(map(str, doc.authors)),
|
66 |
+
"categories": ", ".join(map(str, doc.categories)),
|
67 |
"id": doc.get_short_id(),
|
68 |
"title": doc.title,
|
69 |
}
|