mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-01-26 10:59:47 +00:00
space requirement (#1721)
This commit is contained in:
@@ -132,6 +132,12 @@ class ForgeSpace:
|
||||
os.makedirs(self.hf_path, exist_ok=True)
|
||||
|
||||
if self.repo_id is None:
|
||||
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()
|
||||
|
||||
downloaded = snapshot_download(
|
||||
|
||||
Reference in New Issue
Block a user