yizhangliu commited on
Commit
6075ff9
1 Parent(s): 2e4aa1b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -106,6 +106,7 @@ start_work = """async() => {
106
  window['chat_bot1'].children[2].children[0].appendChild(new_div);
107
  }
108
  window['div_count'] = chat_bot.children[2].children[0].children.length;
 
109
  }
110
  if (window['chat_bot'].children[0].children.length > 1) {
111
  window['chat_bot1'].children[1].textContent = window['chat_bot'].children[0].children[1].textContent;
 
106
  window['chat_bot1'].children[2].children[0].appendChild(new_div);
107
  }
108
  window['div_count'] = chat_bot.children[2].children[0].children.length;
109
+ window['chat_bot1'].children[2].scrollTop = window['chat_bot1'].children[2].scrollHeight;
110
  }
111
  if (window['chat_bot'].children[0].children.length > 1) {
112
  window['chat_bot1'].children[1].textContent = window['chat_bot'].children[0].children[1].textContent;