Spaces:
Runtime error
Runtime error
Update app.py
Browse files85 unmodified lines86878889909127 unmodified lines1191201211221231247 unmodified lines1321331341351361371384 unmodified lines14314414514614714814985 unmodified linesoutputs, report = map_all(image_path=image_path,pieces=TEMPLATES[template_name],prompt=prompt or "",use_optional_ai=use_optional_ai,27 unmodified lines## Garment-Aware AOP Mapping EngineUpload artwork, enter a design guidance prompt, select a garment, and export production PNG pieces.""")7 unmodified linesprompt = gr.Textbox(label="Textual Design Guidance Prompt",placeholder="Keep the main face centered. Use smoke/flames on sleeves. Protect text from seams. Use lower smoke for pocket.",lines=4,)4 unmodified linesbtn = gr.Button("Generate Production ZIP")zip_out = gr.File(label="Download Production ZIP")report = gr.Textbox(label="Mapping Report / Warnings", lines=22)btn.click(generate,85 unmodified lines8687888990919227 unmodified lines1201211221231241251261271281291301311327 unmodified lines1401411421431441451464 unmodified lines15115215315415515615785 unmodified linesoutputs, report = map_all(image_path=image_path,template_id=template_name,pieces=TEMPLATES[template_name],prompt=prompt or "",use_optional_ai=use_optional_ai,27 unmodified lines## Garment-Aware AOP Mapping EngineUpload artwork, enter a design guidance prompt, select a garment, and export production PNG pieces.Current engine supports:- Prompt-guided focal region selection- Piece-specific mapping rules- Sleeve/environment separation- Mask-aware shaped PNG export when masks exist- ZIP export with warnings.json""")7 unmodified linesprompt = gr.Textbox(label="Textual Design Guidance Prompt",placeholder="Keep the main figure centered. Use smoke/flames on sleeves. Protect text from seams. Use lower smoke for pocket.",lines=4,)4 unmodified linesbtn = gr.Button("Generate Production ZIP")zip_out = gr.File(label="Download Production ZIP")report = gr.Textbox(label="Mapping Report / Warnings", lines=24)btn.click(generate,
app.py+10-2