mirror of
https://github.com/vladmandic/automatic
synced 2026-08-28 08:00:59 +02:00
persist control units state on restarts
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
function controlInputMode(inputMode, ...args) {
|
||||
const updateEl = gradioApp().getElementById('control_update');
|
||||
if (updateEl) updateEl.click();
|
||||
const tab = gradioApp().querySelector('#control-tab-input button.selected');
|
||||
if (!tab) return ['Select', ...args];
|
||||
inputMode = tab.innerText;
|
||||
|
||||
Reference in New Issue
Block a user