diff options
author | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-03-16 10:48:37 +0100 |
---|---|---|
committer | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-03-16 10:48:37 +0100 |
commit | 905ced06bd27d4a252791c2316d0bb00b8326d35 (patch) | |
tree | 223c46b0c1902ec73ea55d401eebbf01078c082d /g4f/gui/server/app.py | |
parent | Move raise_for_status, Create FormData wrapper (diff) | |
download | gpt4free-905ced06bd27d4a252791c2316d0bb00b8326d35.tar gpt4free-905ced06bd27d4a252791c2316d0bb00b8326d35.tar.gz gpt4free-905ced06bd27d4a252791c2316d0bb00b8326d35.tar.bz2 gpt4free-905ced06bd27d4a252791c2316d0bb00b8326d35.tar.lz gpt4free-905ced06bd27d4a252791c2316d0bb00b8326d35.tar.xz gpt4free-905ced06bd27d4a252791c2316d0bb00b8326d35.tar.zst gpt4free-905ced06bd27d4a252791c2316d0bb00b8326d35.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/gui/server/app.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/g4f/gui/server/app.py b/g4f/gui/server/app.py index d9e25ca1..869d3880 100644 --- a/g4f/gui/server/app.py +++ b/g4f/gui/server/app.py @@ -2,8 +2,8 @@ import sys, os from flask import Flask if getattr(sys, 'frozen', False): - template_folder = os.path.join(sys._MEIPASS, "client/html") + template_folder = os.path.join(sys._MEIPASS, "client") else: - template_folder = "./../client/html" + template_folder = "../client" -app = Flask(__name__, template_folder=template_folder)
\ No newline at end of file +app = Flask(__name__, template_folder=template_folder, static_folder=f"{template_folder}/static")
\ No newline at end of file |