Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def save_json(data):
|
|
21 |
for doc in docs:
|
22 |
dict_doc = {
|
23 |
'page_content': doc.page_content,
|
24 |
-
'metadata': doc
|
25 |
}
|
26 |
list_docs.append(dict_doc)
|
27 |
data['context'] = list_docs
|
|
|
21 |
for doc in docs:
|
22 |
dict_doc = {
|
23 |
'page_content': doc.page_content,
|
24 |
+
'metadata': doc['metadata']
|
25 |
}
|
26 |
list_docs.append(dict_doc)
|
27 |
data['context'] = list_docs
|