diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2024-02-11 08:41:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-11 08:41:54 +0100 |
commit | 3c498496f812b252d65b65690c36e5f2aa133b94 (patch) | |
tree | 6b46c5cc3671f0e1f4fcdab7e92050b3713d466c /g4f/gui/__init__.py | |
parent | Update image.py (diff) | |
parent | Change python version to 3.12 in unitests (diff) | |
download | gpt4free-3c498496f812b252d65b65690c36e5f2aa133b94.tar gpt4free-3c498496f812b252d65b65690c36e5f2aa133b94.tar.gz gpt4free-3c498496f812b252d65b65690c36e5f2aa133b94.tar.bz2 gpt4free-3c498496f812b252d65b65690c36e5f2aa133b94.tar.lz gpt4free-3c498496f812b252d65b65690c36e5f2aa133b94.tar.xz gpt4free-3c498496f812b252d65b65690c36e5f2aa133b94.tar.zst gpt4free-3c498496f812b252d65b65690c36e5f2aa133b94.zip |
Diffstat (limited to 'g4f/gui/__init__.py')
-rw-r--r-- | g4f/gui/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/g4f/gui/__init__.py b/g4f/gui/__init__.py index 46b4f56a..dff720ac 100644 --- a/g4f/gui/__init__.py +++ b/g4f/gui/__init__.py @@ -7,6 +7,9 @@ except ImportError: raise MissingRequirementsError('Install "flask" package for the gui') def run_gui(host: str = '0.0.0.0', port: int = 8080, debug: bool = False) -> None: + if debug: + import g4f + g4f.debug.logging = True config = { 'host' : host, 'port' : port, |