artificialguybr commited on
Commit
dd4c56c
·
verified ·
1 Parent(s): d3bd39a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -72,10 +72,11 @@ with gr.Blocks() as demo:
72
  chat_history_state = gr.State([])
73
 
74
  def update_chatbot(message, chat_history):
75
- _, chat_history, _ = user(message, chat_history)
76
  chat_history, _, _ = chat(chat_history, system_msg.value, max_tokens.value, temperature.value, top_p.value, 40, 1.1)
77
  return chat_history, chat_history, ""
78
 
 
79
  submit.click(
80
  fn=update_chatbot,
81
  inputs=[message, chat_history_state],
 
72
  chat_history_state = gr.State([])
73
 
74
  def update_chatbot(message, chat_history):
75
+ chat_history, _ = user(message, chat_history)
76
  chat_history, _, _ = chat(chat_history, system_msg.value, max_tokens.value, temperature.value, top_p.value, 40, 1.1)
77
  return chat_history, chat_history, ""
78
 
79
+
80
  submit.click(
81
  fn=update_chatbot,
82
  inputs=[message, chat_history_state],