From 804a80bc7cb788a77af169242b84c892ec4fc638 Mon Sep 17 00:00:00 2001 From: H Lohaus Date: Sun, 24 Nov 2024 17:43:45 +0100 Subject: Arm2 (#2414) * Fix arm v7 build / improve api * Update stubs.py * Fix unit tests --- g4f/gui/server/website.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'g4f/gui/server/website.py') diff --git a/g4f/gui/server/website.py b/g4f/gui/server/website.py index 3cabcdf3..456056b1 100644 --- a/g4f/gui/server/website.py +++ b/g4f/gui/server/website.py @@ -1,11 +1,12 @@ import uuid from flask import render_template, redirect +def redirect_home(): + return redirect('/chat') + class Website: def __init__(self, app) -> None: self.app = app - def redirect_home(): - return redirect('/chat') self.routes = { '/': { 'function': redirect_home, @@ -35,7 +36,7 @@ class Website: def _chat(self, conversation_id): if '-' not in conversation_id: - return redirect('/chat') + return redirect_home() return render_template('index.html', chat_id=conversation_id) def _index(self): -- cgit v1.2.3