Update app11.py
Browse files
app11.py
CHANGED
@@ -294,9 +294,9 @@ def start():
|
|
294 |
#process = subprocess.Popen(command, shell=True)
|
295 |
time.sleep(200)
|
296 |
os.system(f"{command}")
|
297 |
-
|
298 |
# 在这里处理异常的代码
|
299 |
-
|
300 |
# Create threads for each function
|
301 |
wandb_thread = threading.Thread(target=monitor_gpu)
|
302 |
keepliving_thread = threading.Thread(target=session_saver)
|
|
|
294 |
#process = subprocess.Popen(command, shell=True)
|
295 |
time.sleep(200)
|
296 |
os.system(f"{command}")
|
297 |
+
except Exception as e:
|
298 |
# 在这里处理异常的代码
|
299 |
+
print(f"启动SD发生错误: {e}")
|
300 |
# Create threads for each function
|
301 |
wandb_thread = threading.Thread(target=monitor_gpu)
|
302 |
keepliving_thread = threading.Thread(target=session_saver)
|