Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)))
|