tharms commited on
Commit
67c9298
·
1 Parent(s): 96cad0c

added API_MODE flag in async_worker to prevent loading models when in API_MODE - 2

Browse files
Files changed (1) hide show
  1. 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