Update app2.py
Browse files
app2.py
CHANGED
@@ -379,12 +379,12 @@ def start():
|
|
379 |
command = f"python launch.py --api --xformers --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle --port=7861"
|
380 |
command1 = "python launch.py --ui-config=/root/xlab-app-center/stable-diffusion-webui/ui-config2.json --api --xformers --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle --port=7862"
|
381 |
command2 = "python launch.py --ui-config=/root/xlab-app-center/stable-diffusion-webui/ui-config2.json --api --xformers --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle --port=7863"
|
382 |
-
process = subprocess.Popen(command, shell=True)
|
383 |
-
time.sleep(250)
|
384 |
#process = subprocess.Popen(command1, shell=True)
|
385 |
-
time.sleep(100)
|
386 |
-
print("启动ngrok中")
|
387 |
-
command_ngrok = f"ngrok http 8888 --authtoken={ngrok_token} --region=ap & ngrok http 7863 --authtoken=2H8A6felNlmleMqWBF0UUt2C72e_7mqBMs1nVibXbfnK28KrX --region=ap"
|
388 |
#process = subprocess.Popen(command2, shell=True)
|
389 |
def start_ngrok():
|
390 |
try:
|
|
|
379 |
command = f"python launch.py --api --xformers --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle --port=7861"
|
380 |
command1 = "python launch.py --ui-config=/root/xlab-app-center/stable-diffusion-webui/ui-config2.json --api --xformers --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle --port=7862"
|
381 |
command2 = "python launch.py --ui-config=/root/xlab-app-center/stable-diffusion-webui/ui-config2.json --api --xformers --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle --port=7863"
|
382 |
+
#process = subprocess.Popen(command, shell=True)
|
383 |
+
#time.sleep(250)
|
384 |
#process = subprocess.Popen(command1, shell=True)
|
385 |
+
#time.sleep(100)
|
386 |
+
#print("启动ngrok中")
|
387 |
+
#command_ngrok = f"ngrok http 8888 --authtoken={ngrok_token} --region=ap & ngrok http 7863 --authtoken=2H8A6felNlmleMqWBF0UUt2C72e_7mqBMs1nVibXbfnK28KrX --region=ap"
|
388 |
#process = subprocess.Popen(command2, shell=True)
|
389 |
def start_ngrok():
|
390 |
try:
|