acecalisto3 commited on
Commit
f33d94f
·
verified ·
1 Parent(s): bd1e54a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -246,7 +246,7 @@ def process_input(user_input, history, chatbot, agent_name, system_prompt, tempe
246
  """Processes user input and updates the chatbot."""
247
  purpose = "General"
248
  history = history + [(user_input, "")]
249
- chatbot.append(user_input, "")
250
 
251
  for response in run(
252
  purpose,
@@ -258,7 +258,7 @@ def process_input(user_input, history, chatbot, agent_name, system_prompt, tempe
258
  top_p=top_p,
259
  repetition_penalty=repetition_penalty,
260
  ):
261
- chatbot.append("", response)
262
  yield chatbot
263
 
264
  with gr.Blocks() as iface:
 
246
  """Processes user input and updates the chatbot."""
247
  purpose = "General"
248
  history = history + [(user_input, "")]
249
+ chatbot.append(user_input)
250
 
251
  for response in run(
252
  purpose,
 
258
  top_p=top_p,
259
  repetition_penalty=repetition_penalty,
260
  ):
261
+ chatbot.append(response)
262
  yield chatbot
263
 
264
  with gr.Blocks() as iface: