Skip to content

Commit

Permalink
end session
Browse files Browse the repository at this point in the history
  • Loading branch information
AllentDan committed Dec 18, 2023
1 parent 5e52883 commit 02704fb
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lmdeploy/serve/gradio/turbomind_coupled.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,7 @@ async def reset_local_func(instruction_txtbox: gr.Textbox,
"""
state_chatbot = []
# end the session
async for out in InterFace.async_engine.generate('',
session_id,
request_output_len=1,
stream_response=True,
sequence_start=False,
sequence_end=True):
pass
InterFace.async_engine.end_session(session_id)
return (state_chatbot, state_chatbot, gr.Textbox.update(value=''))


Expand Down

0 comments on commit 02704fb

Please sign in to comment.