draft full merge from upstream

This commit is contained in:
Vladimir Mandic
2023-05-04 09:27:48 -04:00
parent 865c0bc7a3
commit 303574ebfc
14 changed files with 187 additions and 46 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ onUiUpdate(function(){
const galleryPreviews = gradioApp().querySelectorAll('div[id^="tab_"][style*="display: block"] div[id$="_results"] .thumbnail-item > img');
if (!galleryPreviews) return;
const headImg = galleryPreviews[0]?.src;
if (!headImg || headImg == lastHeadImg || headImg.endsWith('automatic.png')) return;
if (!headImg || headImg == lastHeadImg || headImg.endsWith('logo.png')) return;
const audioNotification = gradioApp().querySelector('#audio_notification audio');
if (audioNotification) audioNotification.play();
lastHeadImg = headImg;