lixiang46 commited on
Commit
22a00a3
1 Parent(s): 2231fef
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -82,7 +82,7 @@ def tryon(person_img, garment_img, seed, randomize_seed):
82
  get_end_time = time.time()
83
  print(f"get time used: {get_end_time-get_start_time}")
84
  print(f"all time used: {get_end_time-get_start_time+post_end_time-post_start_time}")
85
- if result_img == None:
86
  err_log = f"No image after {Max_Retry} retries"
87
  info = "Too many users, please try again later"
88
  if info != "Success":
 
82
  get_end_time = time.time()
83
  print(f"get time used: {get_end_time-get_start_time}")
84
  print(f"all time used: {get_end_time-get_start_time+post_end_time-post_start_time}")
85
+ if info == "":
86
  err_log = f"No image after {Max_Retry} retries"
87
  info = "Too many users, please try again later"
88
  if info != "Success":