mirror of
https://github.com/vladmandic/automatic
synced 2026-09-11 15:28:43 +02:00
@@ -17,6 +17,7 @@ function controlInputMode(inputMode, ...args) {
|
||||
}
|
||||
|
||||
async function setupControlUI() {
|
||||
const t0 = performance.now();
|
||||
const tabs = ['input', 'output', 'preview'];
|
||||
for (const tab of tabs) {
|
||||
const btn = gradioApp().getElementById(`control-${tab}-button`);
|
||||
@@ -46,5 +47,7 @@ async function setupControlUI() {
|
||||
});
|
||||
intersectionObserver.observe(el); // monitor visibility of tab
|
||||
|
||||
log('initControlUI');
|
||||
const t1 = performance.now();
|
||||
log('setupControlUI', Math.round(t1 - t0));
|
||||
timer('setupControlUI', t1 - t0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user