Prune hosted run controls
This commit is contained in:
parent
75dd1e7e6f
commit
f3dc8e0d52
5 changed files with 58 additions and 78 deletions
|
|
@ -210,7 +210,6 @@ const deviceField = byId<HTMLElement>("deviceField");
|
|||
const deviceInput = byId<HTMLSelectElement>("deviceInput");
|
||||
const stripBackgroundField = byId<HTMLElement>("stripBackgroundField");
|
||||
const stripBackgroundInput = byId<HTMLInputElement>("stripBackgroundInput");
|
||||
const skipRerankInput = byId<HTMLInputElement>("skipRerankInput");
|
||||
|
||||
const paintInputs = {
|
||||
r: byId<HTMLInputElement>("paintR"),
|
||||
|
|
@ -1493,7 +1492,7 @@ function buildFormData(): FormData {
|
|||
["seed", String(parseOptionalInteger(seedInput) ?? 7)],
|
||||
["device", runtimeConfig?.hostedDemo ? "cpu" : deviceInput.value],
|
||||
["strip_background", runtimeConfig?.hostedDemo ? "false" : stripBackgroundInput.checked ? "true" : "false"],
|
||||
["skip_candidate_rerank", skipRerankInput.checked ? "true" : "false"],
|
||||
["skip_candidate_rerank", "false"],
|
||||
];
|
||||
for (const [key, value] of values) {
|
||||
if (value !== null) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue