ai: pppppppffffffftttttt.
Browse files
jarvis.py
CHANGED
@@ -318,8 +318,7 @@ def stop_response(history, sess):
|
|
318 |
sess.stop_event.set()
|
319 |
if history:
|
320 |
history[-1][1] = RESPONSES["RESPONSE_1"]
|
321 |
-
|
322 |
-
return history, None, new_session
|
323 |
|
324 |
with gr.Blocks(fill_height=True, fill_width=True, title=AI_TYPES["AI_TYPE_4"], head=META_TAGS) as jarvis:
|
325 |
user_history = gr.State([])
|
|
|
318 |
sess.stop_event.set()
|
319 |
if history:
|
320 |
history[-1][1] = RESPONSES["RESPONSE_1"]
|
321 |
+
return history, gr.update(value="", interactive=True, submit_btn=True, stop_btn=False), sess
|
|
|
322 |
|
323 |
with gr.Blocks(fill_height=True, fill_width=True, title=AI_TYPES["AI_TYPE_4"], head=META_TAGS) as jarvis:
|
324 |
user_history = gr.State([])
|