diff options
author | Alexander_Kabui | 2023-12-29 15:56:33 +0300 |
---|---|---|
committer | Alexander_Kabui | 2023-12-29 15:56:33 +0300 |
commit | 83062c75442160427b50420161bfcae2c5c34c84 (patch) | |
tree | 17883070f472cdbebf05d6660ccca873974dbe74 | |
parent | a620370c45e0c5bb2f26914e38076cbd958eaf11 (diff) | |
download | genenetwork2-83062c75442160427b50420161bfcae2c5c34c84.tar.gz |
use gn-serverl-url for gn3 api
-rw-r--r-- | wqflask/wqflask/views.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py index 9ecdb780..a10d613e 100644 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -270,10 +270,11 @@ def gnqna(): def __error__(resp): return resp.json() def __success__(resp): + return render_template("gnqa_answer.html",**resp.json()) return monad_requests.post( - urljoin(GN3_LOCAL_URL, - "/api/llm/gnqna"), + urljoin(GN_SERVER_URL, + "llm/gnqna"), json=dict(request.form), ).then( lambda resp: resp |