mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-03-13 08:59:51 +00:00
change space path order
This commit is contained in:
@@ -133,8 +133,8 @@ class ForgeSpace:
|
||||
spaces.unload_module()
|
||||
|
||||
memory_management.unload_all_models()
|
||||
sys.path.insert(0, self.root_path)
|
||||
sys.path.insert(0, self.hf_path)
|
||||
sys.path.insert(0, self.root_path)
|
||||
file_path = os.path.join(self.root_path, 'forge_app.py')
|
||||
module_name = 'forge_space_' + str(uuid.uuid4()).replace('-', '_')
|
||||
spec = importlib.util.spec_from_file_location(module_name, file_path)
|
||||
|
||||
Reference in New Issue
Block a user