selfitcamera commited on
Commit
da7e837
1 Parent(s): 657d167
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -105,6 +105,8 @@ def onLoad(request: gr.Request):
105
  elif inf['state'] in [1]:
106
  queue_n += 1
107
  info = f"{client_ip}, you have {finish_n} successed tasks, {queue_n} running tasks, {fail_n} failed tasks."
 
 
108
  if queue_n>0:
109
  info = info+" Wait for 3~10 mins and refresh this page, successed results will display in the history tab at the bottom"
110
  time.sleep(3)
 
105
  elif inf['state'] in [1]:
106
  queue_n += 1
107
  info = f"{client_ip}, you have {finish_n} successed tasks, {queue_n} running tasks, {fail_n} failed tasks."
108
+ if fail_n>0:
109
+ info = info+" Please upload a human image with face, not just a clothing image!!!"
110
  if queue_n>0:
111
  info = info+" Wait for 3~10 mins and refresh this page, successed results will display in the history tab at the bottom"
112
  time.sleep(3)