Merge pull request #141 from arc53/demo

demo on docsgpt docs
pull/142/head
Pavel 2 years ago committed by GitHub
commit adb912be06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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.
Loading…
Cancel
Save