BBrother commited on
Commit
0ea881f
1 Parent(s): afd65b5

Update launch.py

Browse files
Files changed (1) hide show
  1. launch.py +4 -4
launch.py CHANGED
@@ -34,14 +34,14 @@ sys.stderr = logging.getLogger().handlers[0].stream
34
 
35
  try:
36
  if not args.skip_prepare_environment:
37
- prepare_environment()
38
- os.system(f"sed -i -e 's/dict()))/dict())).cuda()/g' {util_py_path}")
39
  os.system(f"sed -i -e 's/stable/dict()))/dict())).cuda()/g' /bushu/ui/repositories/diffusion-stability-stable/ldm/util.py")
40
 
41
  if args.test_server:
42
- configure_for_tests()
43
 
44
- start()
45
  except Exception as e:
46
  # 捕获其他异常并记录到日志文件
47
  logging.exception(f"程序发生异常: {e}")
 
34
 
35
  try:
36
  if not args.skip_prepare_environment:
37
+ launch_utils.prepare_environment()
38
+ os.system(f"sed -i -e 's/dict()))/dict())).cuda()/g' {launch_utils.util_py_path}")
39
  os.system(f"sed -i -e 's/stable/dict()))/dict())).cuda()/g' /bushu/ui/repositories/diffusion-stability-stable/ldm/util.py")
40
 
41
  if args.test_server:
42
+ launch_utils.configure_for_tests()
43
 
44
+ launch_utils.start()
45
  except Exception as e:
46
  # 捕获其他异常并记录到日志文件
47
  logging.exception(f"程序发生异常: {e}")