Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -138,7 +138,7 @@ with gr.Blocks(css=".chatbox {height: 400px; overflow-y: auto; border: 1px solid
|
|
138 |
with gr.Column(visible=False) as chat_view:
|
139 |
gr.Markdown("## P-MSQ Chat Interface")
|
140 |
|
141 |
-
chatbot_output = gr.HTML(elem_id="chatbox")
|
142 |
|
143 |
msg_input = gr.Textbox(
|
144 |
show_label=False,
|
@@ -218,4 +218,5 @@ with gr.Blocks(css=".chatbox {height: 400px; overflow-y: auto; border: 1px solid
|
|
218 |
|
219 |
if __name__ == "__main__":
|
220 |
demo.queue = False
|
221 |
-
demo.
|
|
|
|
138 |
with gr.Column(visible=False) as chat_view:
|
139 |
gr.Markdown("## P-MSQ Chat Interface")
|
140 |
|
141 |
+
chatbot_output = gr.HTML(elem_id="chatbox")
|
142 |
|
143 |
msg_input = gr.Textbox(
|
144 |
show_label=False,
|
|
|
218 |
|
219 |
if __name__ == "__main__":
|
220 |
demo.queue = False
|
221 |
+
demo.load(lambda: None, [], None, every=0.1)
|
222 |
+
demo.launch(js="document.getElementById('chatbox').scrollTop = document.getElementById('chatbox').scrollHeight;")
|