angelts commited on
Commit
aa39f46
·
verified ·
1 Parent(s): 323f2bb

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -213,7 +213,7 @@ js +="""
213
  //<div role="tabpanel" id="" class="tabitem svelte-dmtrd3" style="display: none;">
214
  let visibleImage = null;
215
  // const images = document.querySelectorAll('div.gallery-container span.preview button.media-button img' + 'div.image-container button div.image-frame img');
216
- const images = document.querySelectorAll("div.image-container button div.image-frame img, div.image-container button div.image-frame img");
217
  for (const img of images) {
218
  const style = window.getComputedStyle(img);
219
  if ( style.display !== "none" && style.visibility !== "hidden" && img.offsetWidth > 0 && img.offsetHeight > 0 )
 
213
  //<div role="tabpanel" id="" class="tabitem svelte-dmtrd3" style="display: none;">
214
  let visibleImage = null;
215
  // const images = document.querySelectorAll('div.gallery-container span.preview button.media-button img' + 'div.image-container button div.image-frame img');
216
+ const images = document.querySelectorAll("div.gallery-container span.preview button.media-button img, div.image-container button div.image-frame img"); //gr.Gallery(), gr.Image()
217
  for (const img of images) {
218
  const style = window.getComputedStyle(img);
219
  if ( style.display !== "none" && style.visibility !== "hidden" && img.offsetWidth > 0 && img.offsetHeight > 0 )