yizhangliu commited on
Commit
326663b
1 Parent(s): a6c7ac9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -118,8 +118,10 @@ start_work = """async() => {
118
 
119
  clientHeight = getClientHeight();
120
  if (isMobile()) {
121
- window['gradioEl'].querySelectorAll('#component-1')[0].style.display = "none";
122
- window['gradioEl'].querySelectorAll('#component-2')[0].style.display = "none";
 
 
123
  new_height = (clientHeight - 250) + 'px';
124
  } else {
125
  new_height = (clientHeight - 350) + 'px';
 
118
 
119
  clientHeight = getClientHeight();
120
  if (isMobile()) {
121
+ output_htmls = window['gradioEl'].querySelectorAll('.output-html');
122
+ for (var i = 0; i < output_htmls.length; i++) {
123
+ output_htmls[i].style.display = "none";
124
+ }
125
  new_height = (clientHeight - 250) + 'px';
126
  } else {
127
  new_height = (clientHeight - 350) + 'px';