RomZay commited on
Commit
956e2fd
·
verified ·
1 Parent(s): d0f8e3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -176,10 +176,8 @@ with gr.Blocks(css=".chatbox {height: 400px; overflow-y: auto; border: 1px solid
176
  last_message_state = gr.State("")
177
 
178
  def user_interaction(message, history, api_key, max_tokens, top_p, temperature):
179
- history, assistant_reply = respond(message, history, system_message, max_tokens, top_p, temperature)
180
- response_html = render_message(history)
181
-
182
- return response_html, history, "", message
183
 
184
  def regenerate_response(history, last_message, max_tokens, top_p, temperature):
185
  return "", []
 
176
  last_message_state = gr.State("")
177
 
178
  def user_interaction(message, history, api_key, max_tokens, top_p, temperature):
179
+ history, assistant_reply = respond(message, api_key, max_tokens, top_p, temperature)
180
+ return render_message(history), history, "", message
 
 
181
 
182
  def regenerate_response(history, last_message, max_tokens, top_p, temperature):
183
  return "", []