rework settings, image-watermark, safe config handling

This commit is contained in:
Vladimir Mandic
2023-07-18 14:41:27 -04:00
parent 3352876521
commit debec28be6
19 changed files with 223 additions and 126 deletions
+3 -1
View File
@@ -63,6 +63,7 @@ async function setHints() {
let localized = 0;
let hints = 0;
locale.finished = true;
const t0 = performance.now();
for (const el of elements) {
const found = locale.data.find((l) => l.label === el.textContent.trim());
if (found?.localized?.length > 0) {
@@ -82,8 +83,9 @@ async function setHints() {
}
}
}
const t1 = performance.now();
console.log('setHints', {
type: locale.type, elements: elements.length, localized, hints, data: locale.data.length,
type: locale.type, elements: elements.length, localized, hints, data: locale.data.length, time: t1 - t0,
});
// validateHints(elements, locale.data)
}
+1
View File
@@ -27,6 +27,7 @@ div.gradio-html.min{ min-height: 0; }
.gradio-slider input[type="number"]{ width: 6em; }
.hidden { display: none; }
footer { display: none; }
td { border-bottom: none !important; }
/* general styled components */
.gradio-button.tool{ max-width: 1em; min-width: 1em !important; align-self: end; font-size: 1.4em }