aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander_Kabui2023-12-29 15:56:33 +0300
committerAlexander_Kabui2023-12-29 15:56:33 +0300
commit83062c75442160427b50420161bfcae2c5c34c84 (patch)
tree17883070f472cdbebf05d6660ccca873974dbe74
parenta620370c45e0c5bb2f26914e38076cbd958eaf11 (diff)
downloadgenenetwork2-83062c75442160427b50420161bfcae2c5c34c84.tar.gz
use gn-serverl-url for gn3 api
-rw-r--r--wqflask/wqflask/views.py5
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