Upload app.py
Browse files
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.
|
| 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 )
|