mirror of
https://github.com/xtekky/gpt4free.git
synced 2026-04-22 15:47:11 +08:00
fix: disable Flask Werkzeug reloader to prevent CPU usage in debug mode
Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
This commit is contained in:
+2
-1
@@ -37,7 +37,8 @@ def run_gui(host: str = '0.0.0.0', port: int = 8080, debug: bool = False) -> Non
|
||||
config = {
|
||||
'host' : host,
|
||||
'port' : port,
|
||||
'debug': debug
|
||||
'debug': debug,
|
||||
'use_reloader': False
|
||||
}
|
||||
|
||||
app = get_gui_app()
|
||||
|
||||
Reference in New Issue
Block a user