yizhangliu commited on
Commit
0a4cac3
·
1 Parent(s): 58cf1fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
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
- for (var j = 0; j < tabitems[i].childNodes[0].children[1].children.length; j++) {
235
- if (j != 1) {
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
  }