Spaces:
Running on Zero
Running on Zero
Upload app.py with huggingface_hub
Browse files497 unmodified lines498499500501502503504232 unmodified lines737738739740741742743497 unmodified lines["Aspect ratio","Pick the frame your scene lives in."],["Elements","Drag out a box for every element that matters, then describe what goes in it."],["Prompt","One line describing the whole scene — or the edit, if you added a reference image."],["Generate","FLUX.3 renders the scene with every element inside its box."],];let S = {aspect:"1:1", elements:[], scene:"", seed:-1, rendered:false, step:1, showBoxes:true,refImage:null, refW:0, refH:0};232 unmodified linesif(!S.elements.some(e=>(e.desc||'').trim()) && !(S.scene||'').trim()){NS.el.scene.focus(); return;}S.seed=-1; S.step=4; renderSteps(); syncState();NS.el.board.classList.add('busy');NS.el.genbtn.setAttribute('disabled','');setTimeout(()=>{ const b=genButton(); if(b)b.click(); },70);497 unmodified lines498499500501502503232 unmodified lines736737738739740741742497 unmodified lines["Aspect ratio","Pick the frame your scene lives in."],["Elements","Drag out a box for every element that matters, then describe what goes in it."],["Prompt","One line describing the whole scene — or the edit, if you added a reference image."],];let S = {aspect:"1:1", elements:[], scene:"", seed:-1, rendered:false, step:1, showBoxes:true,refImage:null, refW:0, refH:0};232 unmodified linesif(!S.elements.some(e=>(e.desc||'').trim()) && !(S.scene||'').trim()){NS.el.scene.focus(); return;}S.seed=-1; S.step=3; renderSteps(); syncState();NS.el.board.classList.add('busy');NS.el.genbtn.setAttribute('disabled','');setTimeout(()=>{ const b=genButton(); if(b)b.click(); },70);
app.py+1-2