Commit 6e86fc9f authored by innovaciones's avatar innovaciones Committed by AUTOMATIC1111

Show interrupt button without progress bar

parent ebf19c11
...@@ -3,7 +3,7 @@ global_progressbar = null ...@@ -3,7 +3,7 @@ global_progressbar = null
onUiUpdate(function(){ onUiUpdate(function(){
progressbar = gradioApp().getElementById('progressbar') progressbar = gradioApp().getElementById('progressbar')
progressDiv = gradioApp().querySelectorAll('.progressDiv').length > 0; progressDiv = gradioApp().querySelectorAll('#progressSpan').length > 0;
interrupt = gradioApp().getElementById('interrupt') interrupt = gradioApp().getElementById('interrupt')
if(progressbar!= null && progressbar != global_progressbar){ if(progressbar!= null && progressbar != global_progressbar){
global_progressbar = progressbar global_progressbar = progressbar
...@@ -40,7 +40,7 @@ function requestMoreProgress(){ ...@@ -40,7 +40,7 @@ function requestMoreProgress(){
if(btn==null) return; if(btn==null) return;
btn.click(); btn.click();
progressDiv = gradioApp().querySelectorAll('.progressDiv').length > 0; progressDiv = gradioApp().querySelectorAll('#progressSpan').length > 0;
if(progressDiv){ if(progressDiv){
interrupt.style.display = "block" interrupt.style.display = "block"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment