sca255 commited on
Commit
0c244db
·
verified ·
1 Parent(s): 3209cef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -78,6 +78,8 @@ if True:
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
- process = subprocess.Popen(command2, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE)
 
 
82
  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")
83
 
 
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