Spaces:
No application file
No application file
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def chatbot(input, session_id, conversation_history={}):
|
|
34 |
role = message["role"]
|
35 |
if role == "user":
|
36 |
role = "Player"
|
37 |
-
elif role == "
|
38 |
role = "AI-Padelcoach"
|
39 |
content = message["content"]
|
40 |
formatted_history += f"{role}: {content}\n \n"
|
|
|
34 |
role = message["role"]
|
35 |
if role == "user":
|
36 |
role = "Player"
|
37 |
+
elif role == "assistant":
|
38 |
role = "AI-Padelcoach"
|
39 |
content = message["content"]
|
40 |
formatted_history += f"{role}: {content}\n \n"
|