vortex123 commited on
Commit
af6f28e
·
verified ·
1 Parent(s): 475b8a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -103,14 +103,14 @@ with gr.Blocks() as demo:
103
  async for response, _ in respond(message, history, model_name):
104
  yield response, ""
105
 
106
- chatbot.input_messages[-1].submit(
107
  process_message,
108
- inputs=[chatbot.input_messages[-1], chatbot.chat_memory, model_selection],
109
- outputs=[chatbot.output_messages[-1], thinking_output],
110
  scroll_to_output=True,
111
  )
112
 
113
- chatbot.input_messages[-1].change(
114
  lambda: "",
115
  inputs=[],
116
  outputs=[thinking_output]
 
103
  async for response, _ in respond(message, history, model_name):
104
  yield response, ""
105
 
106
+ chatbot.submit(
107
  process_message,
108
+ inputs=[chatbot, chatbot.chat_memory, model_selection],
109
+ outputs=[chatbot, thinking_output],
110
  scroll_to_output=True,
111
  )
112
 
113
+ chatbot.change(
114
  lambda: "",
115
  inputs=[],
116
  outputs=[thinking_output]