Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -103,7 +103,7 @@ def get_top_chunks(query, chunk_embeddings, text_chunks):
|
|
| 103 |
|
| 104 |
client = InferenceClient('Qwen/Qwen2.5-7B-Instruct-1M')
|
| 105 |
def respond(message, history):
|
| 106 |
-
info = get_top_chunks(message, chunk_embeddings,
|
| 107 |
messages = [{'role': 'system', 'content': f'You are a friendly chatbot using {info} to answer questions'}]
|
| 108 |
|
| 109 |
if history:
|
|
|
|
| 103 |
|
| 104 |
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'}]
|
| 108 |
|
| 109 |
if history:
|