Antoine245 commited on
Commit
5b3173e
·
1 Parent(s): dc273e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,7 +27,7 @@ chat_history = ['']
27
 
28
 
29
  with gr.Blocks() as demo:
30
- chatbot = gr.Chatbot()
31
  msg = gr.Textbox()
32
  clear = gr.ClearButton([msg, chatbot])
33
 
@@ -39,7 +39,7 @@ with gr.Blocks() as demo:
39
  messages=chat_history
40
  )
41
  bot_message = str(bot_message.last) # Get the last response
42
- # chat_history.append(bot_message) # Append the bot's message to the chat history
43
  time.sleep(2)
44
  return "", chat_history
45
 
 
27
 
28
 
29
  with gr.Blocks() as demo:
30
+ chatbot = gr.Textbox()
31
  msg = gr.Textbox()
32
  clear = gr.ClearButton([msg, chatbot])
33
 
 
39
  messages=chat_history
40
  )
41
  bot_message = str(bot_message.last) # Get the last response
42
+ chat_history.append(bot_message) # Append the bot's message to the chat history
43
  time.sleep(2)
44
  return "", chat_history
45