diff --git a/CHANGELOG.md b/CHANGELOG.md index fdd90e8e8..ea57477fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -209,6 +209,7 @@ All-in-all, we're around ~160 commits worth of updates, check changelog for full - do not recast flux quants - fix xyz-grid with lora none - fix svd image2video +- fix gallery display during generate ## Update for 2024-11-21 diff --git a/javascript/progressBar.js b/javascript/progressBar.js index c385fe5db..dfd895f8e 100644 --- a/javascript/progressBar.js +++ b/javascript/progressBar.js @@ -70,9 +70,13 @@ function requestProgress(id_task, progressEl, galleryEl, atEnd = null, onProgres const initLivePreview = () => { if (!parentGallery) return; const footers = Array.from(gradioApp().querySelectorAll('.gallery_footer')); - for (const footer of footers) footer.style.display = 'none'; // remove all footers + for (const footer of footers) { + if (footer.id !== 'gallery_footer') footer.style.display = 'none'; // remove all footers + } const galleries = Array.from(gradioApp().querySelectorAll('.gallery_main')); - for (const gallery of galleries) gallery.style.display = 'none'; // remove all footers + for (const gallery of galleries) { + if (gallery.id !== 'gallery_gallery') gallery.style.display = 'none'; // remove all footers + } livePreview = document.createElement('div'); livePreview.className = 'livePreview'; diff --git a/requirements.txt b/requirements.txt index 572c4927b..7592162fa 100644 --- a/requirements.txt +++ b/requirements.txt @@ -52,7 +52,7 @@ numba==0.59.1 protobuf==4.25.3 pytorch_lightning==1.9.4 tokenizers==0.21.0 -transformers==4.47.0 +transformers==4.47.1 urllib3==1.26.19 Pillow==10.4.0 timm==0.9.16