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
123456---title: Kolors Tryonemoji: 🖼colorFrom: purplecolorTo: graysdk: gradio123456---title: Kolors Visual Tryonemoji: 👕colorFrom: purplecolorTo: graysdk: gradio
4 unmodified lines567891011121314151617181943 unmodified lines63646566676869704 unmodified linesimport gradio as grimport numpy as npimport randomexample_path = os.path.join(os.path.dirname(__file__), 'assets')MAX_SEED = 999999def start_tryon(imgs, garm_img, garment_des, seed):return Nonegarm_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 lineswith 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)try_button.click(fn=start_tryon, inputs=[imgs, garm_img, seed], outputs=[image_out], api_name='tryon')4 unmodified lines567891011121314151617181920212243 unmodified lines66676869707172737475767778794 unmodified linesimport gradio as grimport numpy as npimport randomimport spaces@spaces.GPUdef start_tryon(imgs, garm_img, garment_des, seed):return NoneMAX_SEED = 999999example_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 lineswith gr.Column():with gr.Accordion(label="Advanced Settings", open=False):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')
123version https://git-lfs.github.com/spec/v1oid sha256:ee7fff5b3874ec80927627cdec9b2e5773cf257952b81fd280c4458993dc1894size 598123version https://git-lfs.github.com/spec/v1oid sha256:79f28d9f0cc8ac8b370ab4bf945a9450dfb6c7febdf3c56d26b1cecd4d386632size 604
README.md+2-2
app.py+14-5
assets/title.md+2-2