sca255 commited on
Commit
69f320a
·
verified ·
1 Parent(s): 535397d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -75,11 +75,11 @@ if True:
75
  f.write(opt.content)
76
  os.system(f"wget -q https://raw.githubusercontent.com/Stability-AI/stablediffusion/main/configs/stable-diffusion/v2-inference-v.yaml -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/v2-1_768-ema-pruned.yaml")
77
  os.listdir("/home/user/app/stable-diffusion-webui/models/Stable-diffusion/")
78
- command =["python","-m","http.server","9393","--directory","/home/user/app/stable-diffusion-webui/models/Stable-diffusion/"]
79
- process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE)
80
- command2=["pylt","port","9393","-s","scafile"]
81
- process2 = subprocess.Popen(command2, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE)
82
- output, error = process2.communicate()
83
- print("Output:", output.decode())
84
  os.system(f"python launch.py --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")
85
 
 
75
  f.write(opt.content)
76
  os.system(f"wget -q https://raw.githubusercontent.com/Stability-AI/stablediffusion/main/configs/stable-diffusion/v2-inference-v.yaml -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/v2-1_768-ema-pruned.yaml")
77
  os.listdir("/home/user/app/stable-diffusion-webui/models/Stable-diffusion/")
78
+ #command =["python","-m","http.server","9393","--directory","/home/user/app/stable-diffusion-webui/models/Stable-diffusion/"]
79
+ #process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE)
80
+ #command2=["pylt","port","9393","-s","scafile"]
81
+ #process2 = subprocess.Popen(command2, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE)
82
+ #output, error = process2.communicate()
83
+ #print("Output:", output.decode())
84
  os.system(f"python launch.py --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")
85