Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,8 +17,9 @@ def save_json(data):
|
|
17 |
filepath = f"./requests_from_users/{filename}"
|
18 |
docs = data['context']
|
19 |
list_docs = []
|
20 |
-
print(docs)
|
21 |
for doc in docs:
|
|
|
22 |
dict_doc = {
|
23 |
'page_content': doc.page_content,
|
24 |
'metadata': doc['metadata']
|
|
|
17 |
filepath = f"./requests_from_users/{filename}"
|
18 |
docs = data['context']
|
19 |
list_docs = []
|
20 |
+
#print(docs)
|
21 |
for doc in docs:
|
22 |
+
print(doc)
|
23 |
dict_doc = {
|
24 |
'page_content': doc.page_content,
|
25 |
'metadata': doc['metadata']
|