Corianas commited on
Commit
f71a80b
1 Parent(s): 2b9bd6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -113,9 +113,9 @@ with gr.Blocks() as demo:
113
  clear = gr.Button("Clear")
114
 
115
  def respond(message, chat_history):
116
- chat_history.append(message)
117
- bot_message = gen(str(chat_history))
118
- chat_history.append(bot_message)
119
  time.sleep(1)
120
  return "", chat_history
121
 
 
113
  clear = gr.Button("Clear")
114
 
115
  def respond(message, chat_history):
116
+ temp_str = str(chat_history)
117
+ bot_message = gen(temp_str+message)
118
+ chat_history.append((message, bot_message))
119
  time.sleep(1)
120
  return "", chat_history
121