Antoine245 commited on
Commit
fabfa72
·
1 Parent(s): 0c6b528

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -38,7 +38,7 @@ with gr.Blocks() as demo:
38
  examples=examples,
39
  messages=chat_history
40
  )
41
- bot_message = 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
 
38
  examples=examples,
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