arthur-nvk commited on
Commit
5851ef4
·
1 Parent(s): 481b38c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -72,6 +72,9 @@ else:
72
 
73
  os.system(f"echo {os.getenv('MODEL_LINK')} {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"python launch.py --force-enable-xformers --ui-config-file /home/user/app/ui-config.json --ui-settings-file /home/user/app/config.json --disable-console-progressbars --enable-console-prompts --cors-allow-origins huggingface.co,hf.space --no-progressbar-hiding --api --skip-torch-cuda-test")
77
 
 
72
 
73
  os.system(f"echo {os.getenv('MODEL_LINK')} {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
+ os.system(f"cp /home/user/app/stable-diffusion-webui/model.ckpt/{os.getenv('MODEL_NAME')} /home/user/app/stable-diffusion-webui/model.ckpt")
76
+ os.system(f"ls /home/user/app/stable-diffusion-webui")
77
+ os.system(f"ls /home/user/app/stable-diffusion-webui/models/Stable-diffusion")
78
+
79
  os.system(f"python launch.py --force-enable-xformers --ui-config-file /home/user/app/ui-config.json --ui-settings-file /home/user/app/config.json --disable-console-progressbars --enable-console-prompts --cors-allow-origins huggingface.co,hf.space --no-progressbar-hiding --api --skip-torch-cuda-test")
80