Update app.py
Browse files
app.py
CHANGED
@@ -69,16 +69,6 @@ if "IS_SHARED_UI" in os.environ:
|
|
69 |
os.system(f"echo 'Downloading shared-ui-config.json for layout preferences...'")
|
70 |
os.system(f"wget -q https://github.com/camenduru/webui/raw/main/shared-ui-config.json -O /home/user/app/shared-ui-config.json")
|
71 |
|
72 |
-
# Download models/configs from environment variables
|
73 |
-
os.system(f"echo 'Downloading Stable Diffusion model: {os.getenv(\"MODEL_NAME\")}...'")
|
74 |
-
os.system(f"wget -q {os.getenv('MODEL_LINK')} -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/{os.getenv('MODEL_NAME')}")
|
75 |
-
|
76 |
-
os.system(f"echo 'Downloading VAE: {os.getenv(\"VAE_NAME\")}...'")
|
77 |
-
os.system(f"wget -q {os.getenv('VAE_LINK')} -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/{os.getenv('VAE_NAME')}")
|
78 |
-
|
79 |
-
os.system(f"echo 'Downloading YAML config: {os.getenv(\"YAML_NAME\")}...'")
|
80 |
-
os.system(f"wget -q {os.getenv('YAML_LINK')} -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/{os.getenv('YAML_NAME')}")
|
81 |
-
|
82 |
# Launch WebUI with shared settings
|
83 |
os.system(f'echo "Starting WebUI with shared configurations..."')
|
84 |
os.system(f"python launch.py --force-enable-xformers --disable-console-progressbars --enable-console-prompts --ui-config-file /home/user/app/shared-ui-config.json --ui-settings-file /home/user/app/shared-config.json --cors-allow-origins huggingface.co,hf.space --no-progressbar-hiding")
|
|
|
69 |
os.system(f"echo 'Downloading shared-ui-config.json for layout preferences...'")
|
70 |
os.system(f"wget -q https://github.com/camenduru/webui/raw/main/shared-ui-config.json -O /home/user/app/shared-ui-config.json")
|
71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
# Launch WebUI with shared settings
|
73 |
os.system(f'echo "Starting WebUI with shared configurations..."')
|
74 |
os.system(f"python launch.py --force-enable-xformers --disable-console-progressbars --enable-console-prompts --ui-config-file /home/user/app/shared-ui-config.json --ui-settings-file /home/user/app/shared-config.json --cors-allow-origins huggingface.co,hf.space --no-progressbar-hiding")
|