hadadrjt commited on
Commit
a112aac
·
1 Parent(s): 4f6f363

ai: pppppppffffffftttttt.

Browse files
Files changed (1) hide show
  1. jarvis.py +1 -2
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
- new_session = create_session()
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([])