From 6e86fc9fd0d8bf9d60b0ed7301aee19554f5198a Mon Sep 17 00:00:00 2001 From: innovaciones Date: Thu, 22 Sep 2022 15:24:57 -0500 Subject: [PATCH] Show interrupt button without progress bar --- javascript/progressbar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/progressbar.js b/javascript/progressbar.js index 20b4dc624..ce0f0df35 100644 --- a/javascript/progressbar.js +++ b/javascript/progressbar.js @@ -3,7 +3,7 @@ global_progressbar = null onUiUpdate(function(){ progressbar = gradioApp().getElementById('progressbar') - progressDiv = gradioApp().querySelectorAll('.progressDiv').length > 0; + progressDiv = gradioApp().querySelectorAll('#progressSpan').length > 0; interrupt = gradioApp().getElementById('interrupt') if(progressbar!= null && progressbar != global_progressbar){ global_progressbar = progressbar @@ -40,7 +40,7 @@ function requestMoreProgress(){ if(btn==null) return; btn.click(); - progressDiv = gradioApp().querySelectorAll('.progressDiv').length > 0; + progressDiv = gradioApp().querySelectorAll('#progressSpan').length > 0; if(progressDiv){ interrupt.style.display = "block" }