selfitcamera commited on
Commit
1fb9c10
1 Parent(s): ef3b103
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -13,6 +13,8 @@ title = r"""
13
  """
14
 
15
  description = r"""
 
 
16
  This demo combines <a href='https://github.com/yisol/IDM-VTON' target='_blank'><b>IDM-VTON </b></a> and <a href='https://github.com/selfitcamera/Outfit-Anyone-in-the-Wild' target='_blank'><b>Outfit Anyone in the Wild </b></a>
17
  1. Human pose detection and reconstruction using large human model from Outfit Anyone in the Wild.
18
  2. Use IDM-VTON for training-free try-on.
@@ -72,7 +74,7 @@ def onClick(cloth_image, cloth_id, pose_image, pose_id, category,
72
  elif infId==2:
73
  return None, "There is a running task already, please wait and check the history tab. Please remember to give us a star on github, thx~", ""
74
  elif infId==3:
75
- return None, "can not creat task, you have exhausted free trial quota", ""
76
 
77
  isPub = publicFastSwap(ApiUrl, OpenId, ApiKey, infId, category,
78
  caption, denoise_steps)
@@ -117,6 +119,7 @@ def onLoad(request: gr.Request):
117
  info = info+" Wait for 3~10 mins and refresh this page, successed results will display in the history tab at the bottom. "
118
  info = info+f" your task position in queue is {position}. "
119
  info = info+f" 任务正在排队,队列位置 {position}. "
 
120
  time.sleep(3)
121
  except Exception as e:
122
  print(e)
 
13
  """
14
 
15
  description = r"""
16
+ <a href='https://www.producthunt.com/posts/heybeauty' target='_blank'><b> Try HeyBeauty for Free Try-On! 🤗 </b></a>.<br>
17
+
18
  This demo combines <a href='https://github.com/yisol/IDM-VTON' target='_blank'><b>IDM-VTON </b></a> and <a href='https://github.com/selfitcamera/Outfit-Anyone-in-the-Wild' target='_blank'><b>Outfit Anyone in the Wild </b></a>
19
  1. Human pose detection and reconstruction using large human model from Outfit Anyone in the Wild.
20
  2. Use IDM-VTON for training-free try-on.
 
74
  elif infId==2:
75
  return None, "There is a running task already, please wait and check the history tab. Please remember to give us a star on github, thx~", ""
76
  elif infId==3:
77
+ return None, "can not creat task, you have exhausted free trial quota. Go to heybeauty for more free trial ! https://www.producthunt.com/posts/heybeauty", ""
78
 
79
  isPub = publicFastSwap(ApiUrl, OpenId, ApiKey, infId, category,
80
  caption, denoise_steps)
 
119
  info = info+" Wait for 3~10 mins and refresh this page, successed results will display in the history tab at the bottom. "
120
  info = info+f" your task position in queue is {position}. "
121
  info = info+f" 任务正在排队,队列位置 {position}. "
122
+ info = info + "Go to heybeauty for better virtual try-on ! https://www.producthunt.com/posts/heybeauty"
123
  time.sleep(3)
124
  except Exception as e:
125
  print(e)