selfitcamera commited on
Commit
d1625e3
1 Parent(s): f4de1ae
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -52,7 +52,7 @@ def onClick(cloth_id, pose_image, pose_id, size, request: gr.Request):
52
  pass
53
  else:
54
  return None, state
55
- return None, "task has been created successfully, you can refresh the page 5 mins latter, and check the following history tab"
56
  except Exception as e:
57
  print(e)
58
  return None, "fail to create task"
@@ -73,6 +73,7 @@ def onLoad(request: gr.Request):
73
  if i>4: continue
74
  his_datas[i*2] = inf['pose']
75
  his_datas[i*2+1] = inf['res']
 
76
  except Exception as e:
77
  print(e)
78
  msg = str(e)
 
52
  pass
53
  else:
54
  return None, state
55
+ return None, "task has been created successfully, you can refresh the page 5~15 mins latter, and check the following history tab"
56
  except Exception as e:
57
  print(e)
58
  return None, "fail to create task"
 
73
  if i>4: continue
74
  his_datas[i*2] = inf['pose']
75
  his_datas[i*2+1] = inf['res']
76
+ time.sleep(3)
77
  except Exception as e:
78
  print(e)
79
  msg = str(e)