Spaces:
Running
Running
liuyizhang
commited on
Commit
·
024d1ee
1
Parent(s):
82edc6e
update app.py
Browse files
app.py
CHANGED
@@ -160,18 +160,20 @@ start_work = """async() => {
|
|
160 |
window['dalle_mini_iframe'] = null;
|
161 |
for (var i = 0; i < tabitems.length; i++) {
|
162 |
if (tabitems_title[i].innerText.indexOf('SD') >= 0) {
|
163 |
-
tabitems[i].childNodes[0]
|
164 |
-
|
165 |
-
|
166 |
-
|
|
|
|
|
167 |
}
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
|
|
|
|
172 |
}
|
173 |
-
} else if (tabitems_title[i].innerText.indexOf('SD 2') >= 0) {
|
174 |
-
tabitems[i].children[0].children[1].children[3].children[0].click();
|
175 |
}
|
176 |
} else if (tabitems_title[i].innerText.indexOf('ernie') >= 0) {
|
177 |
tabitems[i].children[0].children[0].style.display='none';
|
|
|
160 |
window['dalle_mini_iframe'] = null;
|
161 |
for (var i = 0; i < tabitems.length; i++) {
|
162 |
if (tabitems_title[i].innerText.indexOf('SD') >= 0) {
|
163 |
+
if (tabitems[i].childNodes[0]) {
|
164 |
+
tabitems[i].childNodes[0].children[0].style.display='none';
|
165 |
+
for (var j = 0; j < tabitems[i].childNodes[0].children[1].children.length; j++) {
|
166 |
+
if (j != 1) {
|
167 |
+
tabitems[i].childNodes[0].children[1].children[j].style.display='none';
|
168 |
+
}
|
169 |
}
|
170 |
+
if (tabitems_title[i].innerText.indexOf('SD 1') >= 0) {
|
171 |
+
for (var j = 0; j < 4; j++) {
|
172 |
+
tabitems[i].childNodes[0].children[1].children[3].children[1].children[j].children[2].removeAttribute("disabled");
|
173 |
+
}
|
174 |
+
} else if (tabitems_title[i].innerText.indexOf('SD 2') >= 0) {
|
175 |
+
tabitems[i].children[0].children[1].children[3].children[0].click();
|
176 |
}
|
|
|
|
|
177 |
}
|
178 |
} else if (tabitems_title[i].innerText.indexOf('ernie') >= 0) {
|
179 |
tabitems[i].children[0].children[0].style.display='none';
|