demoPOC commited on
Commit
ae6ac2c
·
1 Parent(s): 28cb6dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -121,7 +121,9 @@ def aiassist():
121
  return render_template("index.html")
122
 
123
  def pretty_print_docs(docs):
124
- print(f"\n{'-' * 100}\n".join([f"Document {i+1}:\n\n" + d.page_content for i, d in enumerate(docs)]))
 
 
125
 
126
  if __name__ == '__main__':
127
  app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 7860)))
 
121
  return render_template("index.html")
122
 
123
  def pretty_print_docs(docs):
124
+ print(f"\n{'-' * 100}\n".join([f"Document {i+1}:\n\n" + "Document Source>>> "+d.metadata['source']+"\n\nContent>>> "+d.page_content for i, d in enumerate(docs)]))
125
+
126
+
127
 
128
  if __name__ == '__main__':
129
  app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 7860)))