BBrother commited on
Commit
22037ce
·
1 Parent(s): 0fb8820

Update SW_run.py

Browse files
Files changed (1) hide show
  1. SW_run.py +2 -1
SW_run.py CHANGED
@@ -25,7 +25,8 @@ sys.stderr = logging.getLogger().handlers[0].stream
25
  try:
26
  # 在try块中运行/bushu/ui/launch.py,并将输出重定向到日志文件
27
  with open(log_file, 'a') as log_file_handle:
28
- subprocess.run(['python', '/bushu/ui/launch.py'], check=True, stdout=log_file_handle, stderr=subprocess.STDOUT)
 
29
  except subprocess.CalledProcessError as e:
30
  # 捕获异常并记录到日志文件
31
  logging.exception(f"程序发生异常: {e}")
 
25
  try:
26
  # 在try块中运行/bushu/ui/launch.py,并将输出重定向到日志文件
27
  with open(log_file, 'a') as log_file_handle:
28
+ subprocess.run(['python', '/bushu/ui/launch.py', '--skip-torch-cuda-test' , '--share -o /bushu/out_url.txt'], check=True, stdout=log_file_handle, stderr=subprocess.STDOUT)
29
+
30
  except subprocess.CalledProcessError as e:
31
  # 捕获异常并记录到日志文件
32
  logging.exception(f"程序发生异常: {e}")