diff options
-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 |