try scroll
Browse files
app.py
CHANGED
|
@@ -152,7 +152,7 @@ with gr.Blocks(title="LLM with TTS",head=head) as demo:
|
|
| 152 |
console.log(chatElement.scrollHeight)
|
| 153 |
chatElement.scrollTop = chatElement.scrollHeight;
|
| 154 |
var logElement = chatElement.querySelector('div[role="log"]');
|
| 155 |
-
logElement.scrollTop =
|
| 156 |
|
| 157 |
//text = (chatbot[chatbot.length -1])["content"]
|
| 158 |
//tts_text = window.replaceSpecialChars(text)
|
|
|
|
| 152 |
console.log(chatElement.scrollHeight)
|
| 153 |
chatElement.scrollTop = chatElement.scrollHeight;
|
| 154 |
var logElement = chatElement.querySelector('div[role="log"]');
|
| 155 |
+
logElement.scrollTop = logElement.scrollHeight;
|
| 156 |
|
| 157 |
//text = (chatbot[chatbot.length -1])["content"]
|
| 158 |
//tts_text = window.replaceSpecialChars(text)
|