mirror of
https://github.com/vladmandic/automatic
synced 2026-09-09 06:18:43 +02:00
genai exception handling and lint all
Signed-off-by: vladmandic <mandic00@live.com>
This commit is contained in:
@@ -109,7 +109,7 @@ const generateForever = (genbuttonid) => {
|
||||
busy = outerButton?.classList.contains('generate') && outerButton?.classList.contains('active');
|
||||
}
|
||||
return busy;
|
||||
}
|
||||
};
|
||||
log('generateForever: start');
|
||||
if (!isBusy()) genbutton.click();
|
||||
window.generateOnRepeatInterval = setInterval(() => {
|
||||
|
||||
@@ -5,7 +5,7 @@ function controlInputMode(inputMode, ...args) {
|
||||
if (!tab) return ['Image', ...args];
|
||||
// let inputTab = tab.innerText;
|
||||
const tabs = Array.from(gradioApp().querySelectorAll('#control-tab-input button'));
|
||||
const tabIdx = tabs.findIndex((btn) => btn.classList.contains('selected'))
|
||||
const tabIdx = tabs.findIndex((btn) => btn.classList.contains('selected'));
|
||||
const tabNames = ['Image', 'Video', 'Batch', 'Folder'];
|
||||
let inputTab = tabNames[tabIdx] || 'Image';
|
||||
log('controlInputMode', { mode: inputMode, tab: inputTab, kanvas: typeof Kanvas });
|
||||
|
||||
Reference in New Issue
Block a user