aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander_Kabui2024-01-05 21:59:10 +0300
committerAlexander_Kabui2024-01-05 21:59:10 +0300
commit178e544f4a92b495f53c1221094510106f663173 (patch)
treeb4f87a77e384a109cd635f1eeb053652ceb20300
parent18b3d169091b03f6a0035e5289b695c3166a1b71 (diff)
downloadgenenetwork2-178e544f4a92b495f53c1221094510106f663173.tar.gz
fix error
-rw-r--r--gn2/wqflask/views.py5
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