Update app3.py
Browse files
app3.py
CHANGED
@@ -161,9 +161,7 @@ def check_service(host, port):
|
|
161 |
def localProxy():
|
162 |
os.system('sudo apt install nginx -y')
|
163 |
download_file('https://huggingface.co/datasets/ACCA225/openxlab/resolve/main/proxy_nginx.conf', os.path.join(base_directory, 'proxy_nginx.conf'))
|
164 |
-
|
165 |
-
run(f'''nginx -c /home/xlab-app-center/stable-diffusion-webui/proxy_nginx.conf''')
|
166 |
-
run(f'''nginx -s reload''')
|
167 |
|
168 |
|
169 |
import os
|
|
|
161 |
def localProxy():
|
162 |
os.system('sudo apt install nginx -y')
|
163 |
download_file('https://huggingface.co/datasets/ACCA225/openxlab/resolve/main/proxy_nginx.conf', os.path.join(base_directory, 'proxy_nginx.conf'))
|
164 |
+
run(f'''nginx -c /home/xlab-app-center/stable-diffusion-webui/proxy_nginx.conf''')
|
|
|
|
|
165 |
|
166 |
|
167 |
import os
|