yizhangliu commited on
Commit
a1d1cab
1 Parent(s): 7c32de8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -73,6 +73,8 @@ start_work = """async() => {
73
  page1.style.display = "none";
74
  page2.style.display = "block";
75
 
 
 
76
  window['div_count'] = 0;
77
  window['chat_bot'] = window['gradioEl'].querySelectorAll('#chat_bot')[0];
78
  window['chat_bot1'] = window['gradioEl'].querySelectorAll('#chat_bot1')[0];
@@ -81,7 +83,7 @@ start_work = """async() => {
81
  window['chat_bot1'].children[1].textContent = '';
82
 
83
  clientHeight = getClientHeight();
84
- new_height = (clientHeight-300) + 'px';
85
  chat_row.style.height = new_height;
86
  window['chat_bot'].style.height = new_height;
87
  window['chat_bot'].children[2].style.height = new_height;
 
73
  page1.style.display = "none";
74
  page2.style.display = "block";
75
 
76
+ window['gradioEl'].querySelectorAll('#component-0')[0].style.display = "none";
77
+
78
  window['div_count'] = 0;
79
  window['chat_bot'] = window['gradioEl'].querySelectorAll('#chat_bot')[0];
80
  window['chat_bot1'] = window['gradioEl'].querySelectorAll('#chat_bot1')[0];
 
83
  window['chat_bot1'].children[1].textContent = '';
84
 
85
  clientHeight = getClientHeight();
86
+ new_height = (clientHeight-200) + 'px';
87
  chat_row.style.height = new_height;
88
  window['chat_bot'].style.height = new_height;
89
  window['chat_bot'].children[2].style.height = new_height;