Merge pull request #141 from arc53/demo

demo on docsgpt docs
This commit is contained in:
Pavel 2023-02-28 17:17:08 +04:00 committed by GitHub
commit adb912be06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View File

@ -136,7 +136,11 @@ def api_answer():
# some formatting for the frontend # some formatting for the frontend
result['answer'] = result['result'] result['answer'] = result['result']
result['answer'] = result['answer'].replace("\\n", "<br>") 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 # mock result
# result = { # result = {
# "answer": "The answer is 42", # "answer": "The answer is 42",

Binary file not shown.

Binary file not shown.