Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -109,7 +109,7 @@ print(top_results)
|
|
| 109 |
client = InferenceClient("Qwen/Qwen2.5-72B-Instruct")
|
| 110 |
|
| 111 |
def respond(message, history):
|
| 112 |
-
duck_chunks = get_top_chunks(message, chunk_embeddings,
|
| 113 |
print(duck_chunks)
|
| 114 |
duck_info = "\n".join(duck_chunks)
|
| 115 |
messages = [{"role": "system", "content": f"You are a cool, helpful chatbot named Quentin. You are a kind rubber duck, with strong human emotions who helps the user with their questions. Make sure to use duck-themed references in your responses. Base your response on the provided context: {duck_info}"}]
|
|
|
|
| 109 |
client = InferenceClient("Qwen/Qwen2.5-72B-Instruct")
|
| 110 |
|
| 111 |
def respond(message, history):
|
| 112 |
+
duck_chunks = get_top_chunks(message, chunk_embeddings, cleaned_chunks)
|
| 113 |
print(duck_chunks)
|
| 114 |
duck_info = "\n".join(duck_chunks)
|
| 115 |
messages = [{"role": "system", "content": f"You are a cool, helpful chatbot named Quentin. You are a kind rubber duck, with strong human emotions who helps the user with their questions. Make sure to use duck-themed references in your responses. Base your response on the provided context: {duck_info}"}]
|