Spaces:
Paused
Paused
lixiang46
commited on
Commit
•
4311e2a
1
Parent(s):
eaa8689
change type to numpy
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ with gr.Blocks(css=css) as Tryon:
|
|
50 |
gr.HTML(load_description("assets/title.md"))
|
51 |
with gr.Row():
|
52 |
with gr.Column():
|
53 |
-
imgs = gr.Image(label="Person image", sources='upload', type="
|
54 |
# category = gr.Dropdown(label="Garment category", choices=['upper_body', 'lower_body', 'dresses'], value="upper_body")
|
55 |
example = gr.Examples(
|
56 |
inputs=imgs,
|
@@ -58,7 +58,7 @@ with gr.Blocks(css=css) as Tryon:
|
|
58 |
examples=human_list_path
|
59 |
)
|
60 |
with gr.Column():
|
61 |
-
garm_img = gr.Image(label="Garment image", sources='upload', type="
|
62 |
example = gr.Examples(
|
63 |
inputs=garm_img,
|
64 |
examples_per_page=10,
|
|
|
50 |
gr.HTML(load_description("assets/title.md"))
|
51 |
with gr.Row():
|
52 |
with gr.Column():
|
53 |
+
imgs = gr.Image(label="Person image", sources='upload', type="numpy")
|
54 |
# category = gr.Dropdown(label="Garment category", choices=['upper_body', 'lower_body', 'dresses'], value="upper_body")
|
55 |
example = gr.Examples(
|
56 |
inputs=imgs,
|
|
|
58 |
examples=human_list_path
|
59 |
)
|
60 |
with gr.Column():
|
61 |
+
garm_img = gr.Image(label="Garment image", sources='upload', type="numpy")
|
62 |
example = gr.Examples(
|
63 |
inputs=garm_img,
|
64 |
examples_per_page=10,
|