mirror of
https://github.com/arc53/DocsGPT
synced 2024-11-02 03:40:17 +00:00
commit
adb912be06
@ -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…
Reference in New Issue
Block a user