Upload index.html with huggingface_hub
Browse files- index.html +1 -1
index.html
CHANGED
|
@@ -104,7 +104,7 @@ html,body{background:#161719;overflow:hidden}
|
|
| 104 |
async function setStyle(data){
|
| 105 |
if(!data||!data.length) return; lastData=data;
|
| 106 |
try{ await fetch("/set",{method:"POST",headers:{"Content-Type":"application/json"},
|
| 107 |
-
|
| 108 |
temperature:params.temperature,top_k:params.topk|0,cfg:params.cfg,cfg_notes:params.cfgnotes,cfg_drums:params.cfgdrums,buffer:params.buffer|0,
|
| 109 |
notes:[...activeNotes],unmaskwidth:params.unmaskwidth|0,drumless:!!params.drumless,onsetmode:!!params.onsetmode,reset:resetSeq,seed:seedVal,bank_op:bankOp,prefill_op:prefillOp,model:currentModel})}); }catch(e){}
|
| 110 |
}
|
|
|
|
| 104 |
async function setStyle(data){
|
| 105 |
if(!data||!data.length) return; lastData=data;
|
| 106 |
try{ await fetch("/set",{method:"POST",headers:{"Content-Type":"application/json"},
|
| 107 |
+
session_id:SID,prompts:data.map(d=>(d&&d.text)||""),weights:data.map(d=>(d&&d.weight)||0),audio:data.map(d=>!!(d&&d.isAudio)),
|
| 108 |
temperature:params.temperature,top_k:params.topk|0,cfg:params.cfg,cfg_notes:params.cfgnotes,cfg_drums:params.cfgdrums,buffer:params.buffer|0,
|
| 109 |
notes:[...activeNotes],unmaskwidth:params.unmaskwidth|0,drumless:!!params.drumless,onsetmode:!!params.onsetmode,reset:resetSeq,seed:seedVal,bank_op:bankOp,prefill_op:prefillOp,model:currentModel})}); }catch(e){}
|
| 110 |
}
|