Update SW_run.py
Browse files
SW_run.py
CHANGED
@@ -7,7 +7,8 @@ logging.basicConfig(filename='logs_run.txt', level=logging.INFO, format='%(ascti
|
|
7 |
|
8 |
# 执行第二个命令,并捕获输出
|
9 |
proc = subprocess.Popen(['python', '/content/ui/launch.py', '--listen', '--xformers', '--enable-insecure-extension-access',
|
10 |
-
'--theme', 'dark', '--gradio-queue', '--no-download-sd-model', '--share'],
|
|
|
11 |
|
12 |
# 读取输出并捕获地址
|
13 |
while True:
|
|
|
7 |
|
8 |
# 执行第二个命令,并捕获输出
|
9 |
proc = subprocess.Popen(['python', '/content/ui/launch.py', '--listen', '--xformers', '--enable-insecure-extension-access',
|
10 |
+
'--theme', 'dark', '--gradio-queue', '--no-download-sd-model', '--share'],
|
11 |
+
stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
12 |
|
13 |
# 读取输出并捕获地址
|
14 |
while True:
|