add image gallery

This commit is contained in:
Vladimir Mandic
2024-03-21 15:36:07 -04:00
parent 12cb278025
commit 72a1dd0ac4
9 changed files with 86 additions and 105 deletions
+2 -1
View File
@@ -437,7 +437,8 @@ function currentImageResolutioncontrol(_a, _b, scaleBy) {
}
function updateImg2imgResizeToTextAfterChangingImage() {
setTimeout(() => gradioApp().getElementById('img2img_update_resize_to').click(), 500);
const el = gradioApp().getElementById('img2img_update_resize_to');
if (el) setTimeout(() => gradioApp().getElementById('img2img_update_resize_to').click(), 500);
return [];
}