chenxiYan commited on
Commit
8f11fd4
β€’
1 Parent(s): d6433e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -54,6 +54,7 @@ async def get_response(user_role, user_text, ai_role, chatbot):
54
  response = ai_roles_obj[role_en].chat(role=user_role, text=user_text)
55
  user_msg = user_role + ':γ€Œ' + user_text + '」'
56
  chatbot.append((user_msg, response))
 
57
 
58
  async def respond(user_role, user_text, ai_role, chatbot):
59
  return await get_response(user_role, user_text, ai_role, chatbot), None
 
54
  response = ai_roles_obj[role_en].chat(role=user_role, text=user_text)
55
  user_msg = user_role + ':γ€Œ' + user_text + '」'
56
  chatbot.append((user_msg, response))
57
+ return chatbot
58
 
59
  async def respond(user_role, user_text, ai_role, chatbot):
60
  return await get_response(user_role, user_text, ai_role, chatbot), None