Jeong-hun Kim commited on
Commit
82451e4
·
1 Parent(s): d25e39e

fixed reset_chat

Browse files
Files changed (1) hide show
  1. core/launch_gradio.py +1 -1
core/launch_gradio.py CHANGED
@@ -47,7 +47,7 @@ def create_interface(ctx: ContextManager, makePipeline: MakePipeline):
47
 
48
  # history 초기화
49
  def reset_chat():
50
- ctx.resetHistory()
51
  return gr.update(value=""), "", ctx.getHistory()
52
 
53
  user_input.submit(on_submit, inputs=[user_input, state], outputs=[chat_output, user_input, state], queue=True)
 
47
 
48
  # history 초기화
49
  def reset_chat():
50
+ ctx.clearHistory()
51
  return gr.update(value=""), "", ctx.getHistory()
52
 
53
  user_input.submit(on_submit, inputs=[user_input, state], outputs=[chat_output, user_input, state], queue=True)