Spaces:
Running
Running
Commit
·
1c6fa47
1
Parent(s):
dbdc82d
Update app.py
Browse files
app.py
CHANGED
@@ -102,7 +102,8 @@ start_work = """async() => {
|
|
102 |
texts = window['gradioEl'].querySelectorAll('textarea');
|
103 |
text0 = texts[0];
|
104 |
text1 = texts[1];
|
105 |
-
|
|
|
106 |
console.log('_____new prompt___[' + text1.value + ']_');
|
107 |
window['doCheckPrompt'] = 1;
|
108 |
window['prevPrompt'] = text1.value;
|
|
|
102 |
texts = window['gradioEl'].querySelectorAll('textarea');
|
103 |
text0 = texts[0];
|
104 |
text1 = texts[1];
|
105 |
+
progress_bar = window['gradioEl'].querySelectorAll('.progress-bar');
|
106 |
+
if (window['doCheckPrompt'] === 0 && window['prevPrompt'] !== text1.value && progress_bar.length == 0) {
|
107 |
console.log('_____new prompt___[' + text1.value + ']_');
|
108 |
window['doCheckPrompt'] = 1;
|
109 |
window['prevPrompt'] = text1.value;
|