Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -105,7 +105,12 @@ client = InferenceClient('Qwen/Qwen2.5-7B-Instruct-1M')
|
|
| 105 |
def respond(message, history):
|
| 106 |
info = get_top_chunks(message, chunk_embeddings, cleaned_chunks)
|
| 107 |
messages = [{'role': 'system', 'content': f'You are a friendly chatbot using {info} to answer questions. You love creating playlists and will give at least 5 songs as a response'}]
|
| 108 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
if history:
|
| 110 |
messages.extend(history)
|
| 111 |
|
|
|
|
| 105 |
def respond(message, history):
|
| 106 |
info = get_top_chunks(message, chunk_embeddings, cleaned_chunks)
|
| 107 |
messages = [{'role': 'system', 'content': f'You are a friendly chatbot using {info} to answer questions. You love creating playlists and will give at least 5 songs as a response'}]
|
| 108 |
+
|
| 109 |
+
if not history:
|
| 110 |
+
intro_message = "Hi! I’m AuxAI, your friendly music recommendation assistant. Tell me your mood, genre, or style and I’ll suggest some songs!"
|
| 111 |
+
|
| 112 |
+
return intro_message
|
| 113 |
+
|
| 114 |
if history:
|
| 115 |
messages.extend(history)
|
| 116 |
|