Spaces:
Sleeping
Sleeping
Jeong-hun Kim
commited on
Commit
·
e1ac936
1
Parent(s):
42525e1
hotfix2
Browse files- core/launch_gradio.py +1 -1
core/launch_gradio.py
CHANGED
|
@@ -73,7 +73,7 @@ def create_interface(ctx: ContextManager, makePipeline: MakePipeline):
|
|
| 73 |
# history 초기화
|
| 74 |
def reset_chat():
|
| 75 |
ctx.clearHistory()
|
| 76 |
-
return gr.update(value=""), "", ctx
|
| 77 |
|
| 78 |
user_input.submit(on_submit, inputs=[user_input, state], outputs=[chat_output, user_input, state], queue=True)
|
| 79 |
reset_btn.click(reset_chat, inputs=None, outputs=[chat_output, user_input, state])
|
|
|
|
| 73 |
# history 초기화
|
| 74 |
def reset_chat():
|
| 75 |
ctx.clearHistory()
|
| 76 |
+
return gr.update(value=""), "", ctx
|
| 77 |
|
| 78 |
user_input.submit(on_submit, inputs=[user_input, state], outputs=[chat_output, user_input, state], queue=True)
|
| 79 |
reset_btn.click(reset_chat, inputs=None, outputs=[chat_output, user_input, state])
|