control add inpaint

This commit is contained in:
Vladimir Mandic
2024-01-01 17:35:20 -05:00
parent 4107baddaf
commit 6195ce170b
15 changed files with 265 additions and 108 deletions
+7
View File
@@ -1,3 +1,10 @@
function controlInputMode(inputMode, ...args) {
if (!gradioApp().getElementById('control_input_select').classList.contains('hidden')) inputMode = 'Select';
else if (!gradioApp().getElementById('control_input_resize').classList.contains('hidden')) inputMode = 'Outpaint';
else if (!gradioApp().getElementById('control_input_inpaint').classList.contains('hidden')) inputMode = 'Inpaint';
return [inputMode, ...args];
}
function setupControlUI() {
const tabs = ['input', 'output', 'preview'];
for (const tab of tabs) {