Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -109,7 +109,7 @@ def get_top_chunks(query, chunk_embeddings, text_chunks):
|
|
| 109 |
# Return the list of most relevant chunks
|
| 110 |
return top_chunks
|
| 111 |
|
| 112 |
-
client = InferenceClient('
|
| 113 |
def respond(message, history):
|
| 114 |
info = get_top_chunks(message, chunk_embeddings, cleaned_chunks)
|
| 115 |
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. You will also capitalize the first letters of the first and last names of every artist you name.'}]
|
|
|
|
| 109 |
# Return the list of most relevant chunks
|
| 110 |
return top_chunks
|
| 111 |
|
| 112 |
+
client = InferenceClient('Qwen/Qwen2.5-72B-Instruct')
|
| 113 |
def respond(message, history):
|
| 114 |
info = get_top_chunks(message, chunk_embeddings, cleaned_chunks)
|
| 115 |
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. You will also capitalize the first letters of the first and last names of every artist you name.'}]
|