selfitcamera commited on
Commit
3138356
1 Parent(s): acaf885
Files changed (2) hide show
  1. app.py +3 -3
  2. utils.py +3 -4
app.py CHANGED
@@ -119,9 +119,9 @@ with gr.Blocks(css=css) as demo:
119
  gr.Markdown(title)
120
  gr.Markdown(description)
121
 
122
- with gr.Accordion('upload tips', open=False):
123
- tip_image1 = gr.Image(value=tip1, type="filepath")
124
- tip_image2 = gr.Image(value=tip2, type="filepath")
125
 
126
  with gr.Row():
127
  with gr.Column():
 
119
  gr.Markdown(title)
120
  gr.Markdown(description)
121
 
122
+ with gr.Accordion('upload tips', open=True):
123
+ gr.HTML(f"<img src=\"{tip1}\" >")
124
+ gr.HTML(f"<img src=\"{tip2}\" >")
125
 
126
  with gr.Row():
127
  with gr.Column():
utils.py CHANGED
@@ -48,10 +48,9 @@ def get_result_example(cloth_id, pose_id):
48
  return res_path
49
 
50
  def get_tips():
51
- path1 = os.path.join(data_dir, 'tip1.jpg')
52
- path2 = os.path.join(data_dir, 'tip2.jpg')
53
- return 'Datas/tip1.jpg', 'Datas/tip2.jpg'
54
- # return path1, path2
55
 
56
  def getAllInfs(apiUrl, openId, apiKey, clientIp):
57
  params = {'openId':openId, 'apiKey':apiKey, 'ipId':clientIp}
 
48
  return res_path
49
 
50
  def get_tips():
51
+ path1 = OssUrl+'ClothData/Publics/PoseGuide/tip1.jpg'
52
+ path2 = OssUrl+'ClothData/Publics/PoseGuide/tip2.jpg'
53
+ return path1, path2
 
54
 
55
  def getAllInfs(apiUrl, openId, apiKey, clientIp):
56
  params = {'openId':openId, 'apiKey':apiKey, 'ipId':clientIp}