Spaces:
Runtime error
Runtime error
lixiang46 commited on
Commit ·
01db67e
1
Parent(s): 466b872
test
Browse files12345---title: Kolors Visual Tryonemoji: 👕colorFrom: purplecolorTo: gray12345---title: Kolors Visual Try-onemoji: 👕colorFrom: purplecolorTo: gray
51 unmodified lines52535455565758596061628 unmodified lines717273747576771 unmodified line7980818283848586878889909151 unmodified linescss="""#col-left {margin: 0 auto;max-width: 600px;}#col-right {margin: 0 auto;max-width: 750px;}#button {color: blue;8 unmodified lineswith gr.Blocks(css=css) as Tryon:gr.HTML(load_description("assets/title.md"))with gr.Row():with gr.Column():imgs = gr.Image(label="Person image", sources='upload', type="numpy")# category = gr.Dropdown(label="Garment category", choices=['upper_body', 'lower_body', 'dresses'], value="upper_body")example = gr.Examples(1 unmodified lineexamples_per_page=10,examples=human_list_path)with gr.Column():garm_img = gr.Image(label="Garment image", sources='upload', type="numpy")example = gr.Examples(inputs=garm_img,examples_per_page=10,examples=garm_list_path)with gr.Column():image_out = gr.Image(label="Output", show_share_button=False)seed_used = gr.Number(label="Seed Used")try_button = gr.Button(value="Try-on", elem_id="button")51 unmodified lines5253545556575859606162636465668 unmodified lines757677787980811 unmodified line8384858687888990919293949551 unmodified linescss="""#col-left {margin: 0 auto;max-width: 500px;}#col-mid {margin: 0 auto;max-width: 500px;}#col-right {margin: 0 auto;max-width: 700px;}#button {color: blue;8 unmodified lineswith gr.Blocks(css=css) as Tryon:gr.HTML(load_description("assets/title.md"))with gr.Row():with gr.Column(elem_id = "col-left"):imgs = gr.Image(label="Person image", sources='upload', type="numpy")# category = gr.Dropdown(label="Garment category", choices=['upper_body', 'lower_body', 'dresses'], value="upper_body")example = gr.Examples(1 unmodified lineexamples_per_page=10,examples=human_list_path)with gr.Column(elem_id = "col-mid"):garm_img = gr.Image(label="Garment image", sources='upload', type="numpy")example = gr.Examples(inputs=garm_img,examples_per_page=10,examples=garm_list_path)with gr.Column(elem_id = "col-right"):image_out = gr.Image(label="Output", show_share_button=False)seed_used = gr.Number(label="Seed Used")try_button = gr.Button(value="Try-on", elem_id="button")
README.md+1-1
app.py+9-5