lixiang46 commited on
Commit
b24f193
1 Parent(s): e08fc48
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -47,7 +47,7 @@ def tryon(person_img, garment_img, seed, randomize_seed):
47
 
48
  time.sleep(10)
49
  get_start_time =time.time()
50
- Max_Retry = 4
51
  for i in range(Max_Retry):
52
  time.sleep(3)
53
  try:
@@ -71,7 +71,6 @@ def tryon(person_img, garment_img, seed, randomize_seed):
71
  except requests.exceptions.ReadTimeout:
72
  print("timeout")
73
  info = "Too many users, please try again later"
74
- raise gr.Error("Too many users, please try again later")
75
  get_end_time = time.time()
76
  print(f"time used: {get_end_time-get_start_time}")
77
 
 
47
 
48
  time.sleep(10)
49
  get_start_time =time.time()
50
+ Max_Retry = 10
51
  for i in range(Max_Retry):
52
  time.sleep(3)
53
  try:
 
71
  except requests.exceptions.ReadTimeout:
72
  print("timeout")
73
  info = "Too many users, please try again later"
 
74
  get_end_time = time.time()
75
  print(f"time used: {get_end_time-get_start_time}")
76