trashchenkov commited on
Commit
208604a
·
verified ·
1 Parent(s): fcc89ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.metadata
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