Merge pull request #141 from arc53/demo

demo on docsgpt docs
This commit is contained in:
Pavel authored and GitHub committed 2023-02-28 17:17:08 +04:00
commit adb912be06
3 files changed
+5 -1

No files matched your search

+5 -1
View File
@@ -136,7 +136,11 @@ def api_answer():
# some formatting for the frontend
result['answer'] = result['result']
result['answer'] = result['answer'].replace("\\n", "<br>")
result['answer'] = result['answer'].replace("SOURCES:", "")
try:
result['answer'] = result['answer'].split("SOURCES:")[0]
except:
pass
# mock result
# result = {
# "answer": "The answer is 42",
Binary file not shown.
Binary file not shown.