Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ def set_user_profile(name):
|
|
| 12 |
return name
|
| 13 |
|
| 14 |
def respond(message, history):
|
| 15 |
-
messages = [{"role": "system", "content": f"You are a friendly chatbot. You are talking to {user_profile['name']}"}]
|
| 16 |
|
| 17 |
if history:
|
| 18 |
messages.extend(history)
|
|
|
|
| 12 |
return name
|
| 13 |
|
| 14 |
def respond(message, history):
|
| 15 |
+
messages = [{"role": "system", "content": f"You are a friendly chatbot. You are talking to {user_profile['name']}. Use their name in your initial response."}]
|
| 16 |
|
| 17 |
if history:
|
| 18 |
messages.extend(history)
|