Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -236,10 +236,6 @@ with gr.Blocks(css=".chatbox {height: 400px; overflow-y: auto; border: 1px solid
|
|
236 |
auth_button.click(authorize_and_proceed, inputs=[api_user_input, api_key_input], outputs=[auth_view, chat_view, chatbot_output, history_state])
|
237 |
save_instructions_btn.click(save_custom_instructions, inputs=[api_key_input, system_instructions_input], outputs=auth_status)
|
238 |
demo.load(lambda: None, [], None)
|
239 |
-
|
240 |
-
|
241 |
-
if __name__ == "__main__":
|
242 |
-
demo.queue = False
|
243 |
demo.launch(
|
244 |
js="""
|
245 |
function scrollToBottom() {
|
@@ -254,4 +250,6 @@ if __name__ == "__main__":
|
|
254 |
const observer = new MutationObserver(scrollToBottom);
|
255 |
observer.observe(document.getElementById('chatbox-container'), { childList: true, subtree: true });
|
256 |
"""
|
257 |
-
)
|
|
|
|
|
|
236 |
auth_button.click(authorize_and_proceed, inputs=[api_user_input, api_key_input], outputs=[auth_view, chat_view, chatbot_output, history_state])
|
237 |
save_instructions_btn.click(save_custom_instructions, inputs=[api_key_input, system_instructions_input], outputs=auth_status)
|
238 |
demo.load(lambda: None, [], None)
|
|
|
|
|
|
|
|
|
239 |
demo.launch(
|
240 |
js="""
|
241 |
function scrollToBottom() {
|
|
|
250 |
const observer = new MutationObserver(scrollToBottom);
|
251 |
observer.observe(document.getElementById('chatbox-container'), { childList: true, subtree: true });
|
252 |
"""
|
253 |
+
)
|
254 |
+
if __name__ == "__main__":
|
255 |
+
demo.queue = False
|