Spaces:
Runtime error
Runtime error
lixiang46 commited on
Commit ·
534e5bb
1
Parent(s): f69cd15
update
Browse filesFiles changed (3)
- README.md+2-2
- app.py+14-5
- assets/title.md+2-2
12323456---title: Kolors Tryonemoji: 🖼title: Kolors Visual Tryonemoji: 👕colorFrom: purplecolorTo: graysdk: gradio4 unmodified lines56789910111011121314151617181920212243 unmodified lines666768666769707172737475767778794 unmodified linesimport gradio as grimport numpy as npimport randomimport spaces
example_path = os.path.join(os.path.dirname(__file__), 'assets')
MAX_SEED = 999999
@spaces.GPUdef start_tryon(imgs, garm_img, garment_des, seed): return None
MAX_SEED = 999999
example_path = os.path.join(os.path.dirname(__file__), 'assets')
garm_list = os.listdir(os.path.join(example_path,"cloth"))garm_list_path = [os.path.join(example_path,"cloth",garm) for garm in garm_list]
43 unmodified lines
with gr.Column(): with gr.Accordion(label="Advanced Settings", open=False): with gr.Row(): seed = gr.Number(label="Seed", minimum=-1, maximum=2147483647, step=1, value=None) seed = gr.Slider( label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0, ) randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
try_button.click(fn=start_tryon, inputs=[imgs, garm_img, seed], outputs=[image_out], api_name='tryon')
12323version https://git-lfs.github.com/spec/v1oid sha256:ee7fff5b3874ec80927627cdec9b2e5773cf257952b81fd280c4458993dc1894size 598oid sha256:79f28d9f0cc8ac8b370ab4bf945a9450dfb6c7febdf3c56d26b1cecd4d386632size 604README.md+2-2
app.py+14-5
assets/title.md+2-2