diff --git a/modules_forge/forge_space.py b/modules_forge/forge_space.py index 07543fbf..2093af0c 100644 --- a/modules_forge/forge_space.py +++ b/modules_forge/forge_space.py @@ -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)