change space path order

This commit is contained in:
layerdiffusion
2024-08-18 23:55:28 -07:00
parent deca20551e
commit 3bef4e331a

View File

@@ -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)