返回提交历史
Modified
g4f/gui/__init__.py
+2
-1
XFEstudio/gpt4free
fix: disable Flask Werkzeug reloader to prevent CPU usage in debug mode
Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
270ba11c
代码差异
1 个文件
+2
-1
@@ -37,7 +37,8 @@ def run_gui(host: str = '0.0.0.0', port: int = 8080, debug: bool = False) -> Non
37
37
config = {
38
38
'host' : host,
39
39
'port' : port,
40
'debug': debug
40
'debug': debug,
41
'use_reloader': False
41
42
}
42
43
43
44
app = get_gui_app()