Spaces:
Running
Running
selfitcamera
commited on
Commit
·
46ca478
1
Parent(s):
c81a890
init
Browse files- .DS_Store +0 -0
- Datas/.DS_Store +0 -0
- app.py +3 -11
.DS_Store
CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
|
|
Datas/.DS_Store
CHANGED
Binary files a/Datas/.DS_Store and b/Datas/.DS_Store differ
|
|
app.py
CHANGED
@@ -14,18 +14,10 @@ title = r"""
|
|
14 |
description = r"""
|
15 |
<b>Test results on </b> <a href='https://heybeautify.online/ClothData/Publics/Shows/shows/man_v2/man_v2.html' target='_blank'><b>man01</b></a>.<br>
|
16 |
<b>Test results on </b> <a href='https://heybeautify.online/ClothData/Publics/Shows/shows/cider/cider_0403.html' target='_blank'><b>woman01</b></a>.<br>
|
17 |
-
<b>Test results on </b> <a href='https://heybeautify.online/ClothData/Publics/Shows/shows/baifa/baifa_0408.html' target='_blank'><b>woman02</b></a>.<br>
|
18 |
"""
|
19 |
|
20 |
-
|
21 |
-
.gradio-container {width: 85% !important}
|
22 |
-
"""
|
23 |
-
|
24 |
-
mk_guide = "If image does not display successfully after button clicked in your browser(mostly Mac+Chrome), try [this demo](https://openxlab.org.cn/apps/detail/jiangxiaoguo/OutfitAnyone-in-the-Wild) please"
|
25 |
-
|
26 |
|
27 |
-
def onUpload():
|
28 |
-
return ""
|
29 |
|
30 |
def onClick(cloth_image, pose_image, size):
|
31 |
if pose_image is None:
|
@@ -134,12 +126,12 @@ with gr.Blocks() as demo:
|
|
134 |
|
135 |
with gr.Row():
|
136 |
with gr.Column():
|
137 |
-
cloth_image = gr.Image(value=cloth_examples[0], sources='clipboard', type="filepath", label="")
|
138 |
example = gr.Examples(inputs=cloth_image,
|
139 |
examples_per_page=9,
|
140 |
examples=cloth_examples)
|
141 |
with gr.Column():
|
142 |
-
pose_image = gr.Image(value=pose_examples[0], type="filepath", label="")
|
143 |
example_pose = gr.Examples(inputs=pose_image,
|
144 |
examples_per_page=9,
|
145 |
examples=pose_examples)
|
|
|
14 |
description = r"""
|
15 |
<b>Test results on </b> <a href='https://heybeautify.online/ClothData/Publics/Shows/shows/man_v2/man_v2.html' target='_blank'><b>man01</b></a>.<br>
|
16 |
<b>Test results on </b> <a href='https://heybeautify.online/ClothData/Publics/Shows/shows/cider/cider_0403.html' target='_blank'><b>woman01</b></a>.<br>
|
|
|
17 |
"""
|
18 |
|
19 |
+
mk_guide = ""
|
|
|
|
|
|
|
|
|
|
|
20 |
|
|
|
|
|
21 |
|
22 |
def onClick(cloth_image, pose_image, size):
|
23 |
if pose_image is None:
|
|
|
126 |
|
127 |
with gr.Row():
|
128 |
with gr.Column():
|
129 |
+
cloth_image = gr.Image(value=cloth_examples[0], sources='clipboard', type="filepath", label="choose a outfit")
|
130 |
example = gr.Examples(inputs=cloth_image,
|
131 |
examples_per_page=9,
|
132 |
examples=cloth_examples)
|
133 |
with gr.Column():
|
134 |
+
pose_image = gr.Image(value=pose_examples[0], type="filepath", label="choose/upload a photo")
|
135 |
example_pose = gr.Examples(inputs=pose_image,
|
136 |
examples_per_page=9,
|
137 |
examples=pose_examples)
|