Update app.py
Browse files214 unmodified lines2152162172182192202212 unmodified lines224225226227228229214 unmodified linesconst chatbox = document.getElementById("chatbox");if (chatbox) {const observer = new MutationObserver(() => {chatbox.scrollTop = chatbox.scrollHeight;});observer.observe(chatbox, { childList: true, subtree: true });} else {2 unmodified lines};waitForChatbox();</script>""")chatbot = gr.Chatbot(214 unmodified lines2152162172182192202212222232 unmodified lines226227228229230231232214 unmodified linesconst chatbox = document.getElementById("chatbox");if (chatbox) {const observer = new MutationObserver(() => {requestAnimationFrame(() => {chatbox.scrollTop = chatbox.scrollHeight + 150; // 加偏移量});});observer.observe(chatbox, { childList: true, subtree: true });} else {2 unmodified lines};waitForChatbox();</script>""")chatbot = gr.Chatbot(
app.py+4-1