mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-03-13 08:59:51 +00:00
revise space
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user