diff options
author | Alexander_Kabui | 2024-01-05 21:59:10 +0300 |
---|---|---|
committer | Alexander_Kabui | 2024-01-05 21:59:10 +0300 |
commit | 178e544f4a92b495f53c1221094510106f663173 (patch) | |
tree | b4f87a77e384a109cd635f1eeb053652ceb20300 | |
parent | 18b3d169091b03f6a0035e5289b695c3166a1b71 (diff) | |
download | genenetwork2-178e544f4a92b495f53c1221094510106f663173.tar.gz |
fix error
-rw-r--r-- | gn2/wqflask/views.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gn2/wqflask/views.py b/gn2/wqflask/views.py index 7a5f77d0..68413aeb 100644 --- a/gn2/wqflask/views.py +++ b/gn2/wqflask/views.py @@ -262,6 +262,7 @@ def gsearchtable(): + @app.route("/gnqna",methods =["POST","GET"]) def gnqna(): if request.method == "POST": @@ -272,8 +273,8 @@ def gnqna(): return render_template("gnqa_answer.html",**resp.json()) return monad_requests.post( - urljoin(current_app.config["GN_SERVER_URL"], - "llm/gnqna"), + urljoin(GN3_LOCAL_URL, + "/api/llm/gnqna"), json=dict(request.form), ).then( lambda resp: resp |