diff --git a/api/app.py b/api/app.py index 93774bd75d..60cd622ef4 100644 --- a/api/app.py +++ b/api/app.py @@ -2,7 +2,7 @@ import os from configs import dify_config -if dify_config.DEBUG: +if not dify_config.DEBUG: from gevent import monkey monkey.patch_all() diff --git a/api/app_factory.py b/api/app_factory.py index f53cf14f4b..60a584798b 100644 --- a/api/app_factory.py +++ b/api/app_factory.py @@ -2,7 +2,7 @@ import os from configs import dify_config -if dify_config.DEBUG: +if not dify_config.DEBUG: from gevent import monkey monkey.patch_all()