Spaces:
Running
Running
ai: Turn on gradio progress.
Browse files
jarvis.py
CHANGED
@@ -377,6 +377,6 @@ with gr.Blocks(fill_height=True, fill_width=True, title=AI_TYPES["AI_TYPE_4"], h
|
|
377 |
def clear_chat():
|
378 |
return [], create_session(), "", "", []
|
379 |
chatbot.clear(fn=clear_chat, inputs=[], outputs=[chatbot, user_session, J_A_R_V_I_S, msg, user_history])
|
380 |
-
msg.submit(fn=respond_async, inputs=[msg, user_history, selected_model, user_session, J_A_R_V_I_S], outputs=[chatbot, msg, user_session], api_name=INTERNAL_AI_GET_SERVER)
|
381 |
msg.stop(fn=stop_response, inputs=[user_history, user_session], outputs=[chatbot, msg, user_session])
|
382 |
jarvis.queue(default_concurrency_limit=2).launch(max_file_size="1mb")
|
|
|
377 |
def clear_chat():
|
378 |
return [], create_session(), "", "", []
|
379 |
chatbot.clear(fn=clear_chat, inputs=[], outputs=[chatbot, user_session, J_A_R_V_I_S, msg, user_history])
|
380 |
+
msg.submit(fn=respond_async, inputs=[msg, user_history, selected_model, user_session, J_A_R_V_I_S], outputs=[chatbot, msg, user_session], api_name=INTERNAL_AI_GET_SERVER, show_progress="full", show_progress_on=[chatbot, msg])
|
381 |
msg.stop(fn=stop_response, inputs=[user_history, user_session], outputs=[chatbot, msg, user_session])
|
382 |
jarvis.queue(default_concurrency_limit=2).launch(max_file_size="1mb")
|