Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
| 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 |
|