Spaces:
Paused
Paused
added API_MODE flag in async_worker to prevent loading models when in API_MODE - 2
Browse files- modules/async_worker.py +2 -0
modules/async_worker.py
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
import threading
|
2 |
import re
|
|
|
|
|
3 |
if not args.api_mode:
|
4 |
from modules.patch import PatchSettings, patch_settings, patch_all
|
5 |
|
|
|
1 |
import threading
|
2 |
import re
|
3 |
+
|
4 |
+
args = ini_args()
|
5 |
if not args.api_mode:
|
6 |
from modules.patch import PatchSettings, patch_settings, patch_all
|
7 |
|