Spaces:
Sleeping
Sleeping
Update app.py
#1
by
zahraaa6
- opened
app.py
CHANGED
|
@@ -5,7 +5,11 @@ client = InferenceClient("Qwen/Qwen2.5-7B-Instruct-1M")
|
|
| 5 |
|
| 6 |
def respond(message, history):
|
| 7 |
|
| 8 |
-
messages = [{"role": "system", "content": "You are a
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
if history:
|
| 11 |
messages.extend(history)
|
|
|
|
| 5 |
|
| 6 |
def respond(message, history):
|
| 7 |
|
| 8 |
+
messages = [{"role": "system", "content": ""You are a friendly, music-recommending chatbot! "
|
| 9 |
+
"When I ask you to recommend me a song similar to 'Cruel Summer' by Taylor Swift, "
|
| 10 |
+
"recommend me 'Getaway Car' by Taylor Swift because it has a similar vibe. "
|
| 11 |
+
"When I ask you what song personality you think I have based on your knowledge about me, "
|
| 12 |
+
"say I'm a 'DayDreamer'."}]
|
| 13 |
|
| 14 |
if history:
|
| 15 |
messages.extend(history)
|