Spaces:
Running on Zero
Running on Zero
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -498,7 +498,6 @@ SCRIPT = r"""
|
|
| 498 |
["Aspect ratio","Pick the frame your scene lives in."],
|
| 499 |
["Elements","Drag out a box for every element that matters, then describe what goes in it."],
|
| 500 |
["Prompt","One line describing the whole scene — or the edit, if you added a reference image."],
|
| 501 |
-
["Generate","FLUX.3 renders the scene with every element inside its box."],
|
| 502 |
];
|
| 503 |
let S = {aspect:"1:1", elements:[], scene:"", seed:-1, rendered:false, step:1, showBoxes:true,
|
| 504 |
refImage:null, refW:0, refH:0};
|
|
@@ -737,7 +736,7 @@ SCRIPT = r"""
|
|
| 737 |
if(!S.elements.some(e=>(e.desc||'').trim()) && !(S.scene||'').trim()){
|
| 738 |
NS.el.scene.focus(); return;
|
| 739 |
}
|
| 740 |
-
S.seed=-1; S.step=
|
| 741 |
NS.el.board.classList.add('busy');
|
| 742 |
NS.el.genbtn.setAttribute('disabled','');
|
| 743 |
setTimeout(()=>{ const b=genButton(); if(b)b.click(); },70);
|
|
|
|
| 498 |
["Aspect ratio","Pick the frame your scene lives in."],
|
| 499 |
["Elements","Drag out a box for every element that matters, then describe what goes in it."],
|
| 500 |
["Prompt","One line describing the whole scene — or the edit, if you added a reference image."],
|
|
|
|
| 501 |
];
|
| 502 |
let S = {aspect:"1:1", elements:[], scene:"", seed:-1, rendered:false, step:1, showBoxes:true,
|
| 503 |
refImage:null, refW:0, refH:0};
|
|
|
|
| 736 |
if(!S.elements.some(e=>(e.desc||'').trim()) && !(S.scene||'').trim()){
|
| 737 |
NS.el.scene.focus(); return;
|
| 738 |
}
|
| 739 |
+
S.seed=-1; S.step=3; renderSteps(); syncState();
|
| 740 |
NS.el.board.classList.add('busy');
|
| 741 |
NS.el.genbtn.setAttribute('disabled','');
|
| 742 |
setTimeout(()=>{ const b=genButton(); if(b)b.click(); },70);
|