Spaces:
Running
on
L40S
Running
on
L40S
Commit
·
ead8de6
1
Parent(s):
cb92fd2
sliders update for html
Browse files- magentaRT_rt_tester.html +14 -14
magentaRT_rt_tester.html
CHANGED
@@ -345,20 +345,20 @@ async function scheduleWavBytes(arrayBuffer) {
|
|
345 |
}
|
346 |
}
|
347 |
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
|
363 |
function sendUpdate() {
|
364 |
if (!ws || ws.readyState !== 1) return;
|
|
|
345 |
}
|
346 |
}
|
347 |
|
348 |
+
function currentParams() {
|
349 |
+
return {
|
350 |
+
temperature: parseFloat(numTemp.value),
|
351 |
+
topk: parseInt(numTopk.value, 10),
|
352 |
+
guidance_weight: parseFloat(numGuid.value),
|
353 |
+
styles: txtStyles.value,
|
354 |
+
style_weights: txtStyleWeights.value,
|
355 |
+
use_current_mix_as_style: !!chkUseMixStyle.checked,
|
356 |
+
|
357 |
+
// NEW:
|
358 |
+
mean: parseFloat(numMean.value),
|
359 |
+
centroid_weights: centroidWeightsCSV(),
|
360 |
+
};
|
361 |
+
}
|
362 |
|
363 |
function sendUpdate() {
|
364 |
if (!ws || ws.readyState !== 1) return;
|