Spaces:
Running
Running
liuyizhang
commited on
Commit
·
3d4f8dd
1
Parent(s):
024d1ee
update app.py
Browse files
app.py
CHANGED
@@ -160,20 +160,22 @@ 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 |
-
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 |
-
|
|
|
|
|
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';
|
|
|
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].children[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 |
+
}
|
171 |
+
if (tabitems_title[i].innerText.indexOf('SD 1') >= 0) {
|
172 |
+
if (tabitems[i].childNodes[0].children[1]) {
|
173 |
for (var j = 0; j < 4; j++) {
|
174 |
tabitems[i].childNodes[0].children[1].children[3].children[1].children[j].children[2].removeAttribute("disabled");
|
175 |
}
|
|
|
|
|
176 |
}
|
177 |
+
} else if (tabitems_title[i].innerText.indexOf('SD 2') >= 0) {
|
178 |
+
tabitems[i].children[0].children[1].children[3].children[0].click();
|
179 |
}
|
180 |
} else if (tabitems_title[i].innerText.indexOf('ernie') >= 0) {
|
181 |
tabitems[i].children[0].children[0].style.display='none';
|