captain-awesome
commited on
Commit
•
f64563b
1
Parent(s):
1f78d9c
Update app.py
Browse files
app.py
CHANGED
@@ -387,7 +387,7 @@ def main():
|
|
387 |
qa = RetrievalQA.from_chain_type(llm=llm, chain_type="stuff", retriever=retriever, return_source_documents=True, verbose=True)
|
388 |
bot_response = qa(query)
|
389 |
lines = bot_response['result'].split('\n')
|
390 |
-
wrapped_lines = [textwrap.fill(line, width=
|
391 |
wrapped_text = '\n'.join(wrapped_lines)
|
392 |
|
393 |
for source in bot_response["source_documents"]:
|
|
|
387 |
qa = RetrievalQA.from_chain_type(llm=llm, chain_type="stuff", retriever=retriever, return_source_documents=True, verbose=True)
|
388 |
bot_response = qa(query)
|
389 |
lines = bot_response['result'].split('\n')
|
390 |
+
wrapped_lines = [textwrap.fill(line, width=50) for line in lines]
|
391 |
wrapped_text = '\n'.join(wrapped_lines)
|
392 |
|
393 |
for source in bot_response["source_documents"]:
|