Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|