Spaces:
Running
Running
yizhangliu
commited on
Commit
·
0a4cac3
1
Parent(s):
58cf1fc
Update app.py
Browse files
app.py
CHANGED
@@ -231,11 +231,8 @@ switch_tab_advanced = """async() => {
|
|
231 |
tabitems_title = window['gradioEl'].querySelectorAll('#tab_demo')[0].children[0].children[0].children;
|
232 |
for (var i = 0; i < tabitems.length; i++) {
|
233 |
if (tabitems_title[i].innerText.indexOf('SD') >= 0) {
|
234 |
-
|
235 |
-
|
236 |
-
tabitems[i].childNodes[0].children[1].children[j].style.display=action;
|
237 |
-
}
|
238 |
-
}
|
239 |
} else if (tabitems_title[i].innerText.indexOf('Taiyi') >= 0) {
|
240 |
tabitems[i].children[0].children[0].children[1].style.display=action;
|
241 |
}
|
|
|
231 |
tabitems_title = window['gradioEl'].querySelectorAll('#tab_demo')[0].children[0].children[0].children;
|
232 |
for (var i = 0; i < tabitems.length; i++) {
|
233 |
if (tabitems_title[i].innerText.indexOf('SD') >= 0) {
|
234 |
+
tabitems[i].childNodes[0].children[1].children[0].style.display=action;
|
235 |
+
tabitems[i].childNodes[0].children[1].children[4].style.display=action;
|
|
|
|
|
|
|
236 |
} else if (tabitems_title[i].innerText.indexOf('Taiyi') >= 0) {
|
237 |
tabitems[i].children[0].children[0].children[1].style.display=action;
|
238 |
}
|