ai: The warnings is gone.
Browse files
jarvis.py
CHANGED
@@ -334,7 +334,7 @@ async def respond_async(multi, history, model_display, sess, custom_prompt):
|
|
334 |
def change_model(new):
|
335 |
visible = new != MODEL_CHOICES[0]
|
336 |
default = SYSTEM_PROMPT_MAPPING.get(get_model_key(new), SYSTEM_PROMPT_DEFAULT)
|
337 |
-
return [], create_session(), new, default
|
338 |
|
339 |
def stop_response(history, sess):
|
340 |
ensure_stop_event(sess)
|
@@ -362,4 +362,4 @@ with gr.Blocks(fill_height=True, fill_width=True, title=AI_TYPES["AI_TYPE_4"], h
|
|
362 |
chatbot.clear(fn=clear_chat, inputs=[], outputs=[chatbot, user_session, J_A_R_V_I_S, msg, user_history])
|
363 |
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])
|
364 |
msg.stop(fn=stop_response, inputs=[user_history, user_session], outputs=[chatbot, msg, user_session])
|
365 |
-
jarvis.queue(default_concurrency_limit=2).launch(max_file_size="1mb"
|
|
|
334 |
def change_model(new):
|
335 |
visible = new != MODEL_CHOICES[0]
|
336 |
default = SYSTEM_PROMPT_MAPPING.get(get_model_key(new), SYSTEM_PROMPT_DEFAULT)
|
337 |
+
return [], create_session(), new, default
|
338 |
|
339 |
def stop_response(history, sess):
|
340 |
ensure_stop_event(sess)
|
|
|
362 |
chatbot.clear(fn=clear_chat, inputs=[], outputs=[chatbot, user_session, J_A_R_V_I_S, msg, user_history])
|
363 |
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])
|
364 |
msg.stop(fn=stop_response, inputs=[user_history, user_session], outputs=[chatbot, msg, user_session])
|
365 |
+
jarvis.queue(default_concurrency_limit=2).launch(max_file_size="1mb")
|