revise space

This commit is contained in:
layerdiffusion
2024-08-19 22:43:09 -07:00
parent fef6df29d9
commit 65ec461f8a
9 changed files with 18 additions and 7 deletions

View File

@@ -108,6 +108,13 @@ class ForgeSpace:
)
print(f'Downloaded: {downloaded}')
requirements_filename = os.path.abspath(os.path.realpath(os.path.join(self.root_path, 'requirements.txt')))
if os.path.exists(requirements_filename):
from modules.launch_utils import run_pip
run_pip(f'install -r "{requirements_filename}"', desc=f"space requirements for [{self.title}]")
return self.refresh_gradio()
def uninstall(self):