diff options
author | Alexander_Kabui | 2024-01-17 21:03:04 +0300 |
---|---|---|
committer | Alexander_Kabui | 2024-01-17 21:03:04 +0300 |
commit | b9a8d3d23f3c239c42c1c4a7ce1c59c2c9a1c450 (patch) | |
tree | fcfe2334171737e55669ced99db7d194f9a8501c /gn3 | |
parent | 2465bd38f184cb2ce3b94917f822e2be55390f24 (diff) | |
download | genenetwork3-b9a8d3d23f3c239c42c1c4a7ce1c59c2c9a1c450.tar.gz |
fix error message for empty responses
Diffstat (limited to 'gn3')
-rw-r--r-- | gn3/llms/process.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gn3/llms/process.py b/gn3/llms/process.py index bd10c19..b4fd507 100644 --- a/gn3/llms/process.py +++ b/gn3/llms/process.py @@ -76,11 +76,11 @@ def get_gnqa(query, auth_token): if success == 1: resp_text = filter_response_text(res.text) if resp_text.get("data") is None: - return "Unfortunately I have nothing on the query", [] + return task_id, "Unfortunately I have nothing on the query", [] answer = resp_text['data']['answer'] context = resp_text['data']['context'] references = parse_context( context, DocIDs().getInfo, format_bibliography_info) return task_id, answer, references else: - return task_id, res, "Unfortunately I have nothing." + return task_id, "Unfortunately, I have nothing on the query", [] |