diff options
author | kqlio67 <kqlio67@users.noreply.github.com> | 2024-10-25 19:07:24 +0200 |
---|---|---|
committer | kqlio67 <kqlio67@users.noreply.github.com> | 2024-10-25 19:07:24 +0200 |
commit | 078edc6f61f70fe2436253411b195f40201be833 (patch) | |
tree | 10ba3ebddcd43fcf022070e6ce080f1ec39ebaaa | |
parent | feat(g4f/gui/server/backend.py): add route to list generated images (diff) | |
download | gpt4free-078edc6f61f70fe2436253411b195f40201be833.tar gpt4free-078edc6f61f70fe2436253411b195f40201be833.tar.gz gpt4free-078edc6f61f70fe2436253411b195f40201be833.tar.bz2 gpt4free-078edc6f61f70fe2436253411b195f40201be833.tar.lz gpt4free-078edc6f61f70fe2436253411b195f40201be833.tar.xz gpt4free-078edc6f61f70fe2436253411b195f40201be833.tar.zst gpt4free-078edc6f61f70fe2436253411b195f40201be833.zip |
-rw-r--r-- | g4f/gui/server/website.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/g4f/gui/server/website.py b/g4f/gui/server/website.py index 5e633674..3cabcdf3 100644 --- a/g4f/gui/server/website.py +++ b/g4f/gui/server/website.py @@ -27,6 +27,10 @@ class Website: 'function': redirect_home, 'methods': ['GET', 'POST'] }, + '/images/': { + 'function': redirect_home, + 'methods': ['GET', 'POST'] + }, } def _chat(self, conversation_id): @@ -35,4 +39,4 @@ class Website: return render_template('index.html', chat_id=conversation_id) def _index(self): - return render_template('index.html', chat_id=str(uuid.uuid4()))
\ No newline at end of file + return render_template('index.html', chat_id=str(uuid.uuid4())) |