Update tabbed.py
Browse files
tabbed.py
CHANGED
@@ -170,11 +170,11 @@ with gr.Blocks() as demo:
|
|
170 |
).then(
|
171 |
fn=rp_chat, inputs=[chat_history_state, system_msg, max_tokens, temperature, top_p, top_k, repeat_penalty], outputs=[chatbot, chat_history_state], queue=True
|
172 |
)
|
173 |
-
message_submit_event = message.submit(
|
174 |
-
|
175 |
-
).then(
|
176 |
-
|
177 |
-
)
|
178 |
-
stop.click(fn=None, inputs=None, outputs=None, cancels=[submit_click_event,
|
179 |
|
180 |
demo.queue(**config["queue"]).launch(debug=True, server_name="0.0.0.0", server_port=7860)
|
|
|
170 |
).then(
|
171 |
fn=rp_chat, inputs=[chat_history_state, system_msg, max_tokens, temperature, top_p, top_k, repeat_penalty], outputs=[chatbot, chat_history_state], queue=True
|
172 |
)
|
173 |
+
# message_submit_event = message.submit(
|
174 |
+
# fn=user, inputs=[message, chat_history_state], outputs=[message, chat_history_state], queue=True
|
175 |
+
# ).then(
|
176 |
+
# fn=chat, inputs=[chat_history_state, system_msg, max_tokens, temperature, top_p, top_k, repeat_penalty], outputs=[chatbot, chat_history_state], queue=True
|
177 |
+
# )
|
178 |
+
stop.click(fn=None, inputs=None, outputs=None, cancels=[submit_click_event, roleplay_click_event], queue=False)
|
179 |
|
180 |
demo.queue(**config["queue"]).launch(debug=True, server_name="0.0.0.0", server_port=7860)
|