summaryrefslogtreecommitdiffstats
path: root/g4f/gui/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'g4f/gui/__init__.py')
-rw-r--r--g4f/gui/__init__.py3
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,