Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -116,7 +116,7 @@ client=InferenceClient("Qwen/Qwen2.5-72B-Instruct")
|
|
| 116 |
def respond(message, history):
|
| 117 |
top_results= get_top_chunks(message, chunk_embeddings, cleaned_chunks)
|
| 118 |
str_top_results= '\n'.join(top_results)
|
| 119 |
-
messages = [{'role':'system', 'content': f'You are a chatbot. Complete all your sentences, and do not cut yourself off. The word limit is 100 words. Start off by only giving a career, and then if prompted by the user provide more information like salary, college course,etc. Base your response on the provided context:\n{str_top_results}'}]
|
| 120 |
if history:
|
| 121 |
messages.extend(history)
|
| 122 |
|
|
|
|
| 116 |
def respond(message, history):
|
| 117 |
top_results= get_top_chunks(message, chunk_embeddings, cleaned_chunks)
|
| 118 |
str_top_results= '\n'.join(top_results)
|
| 119 |
+
messages = [{'role':'system', 'content': f'You are a chatbot. Complete all your sentences, do not be blunt, and do not cut yourself off. The word limit is 100 words. Start off by only giving a career, and then if prompted by the user provide more information like salary, college course,etc. Base your response on the provided context:\n{str_top_results}'}]
|
| 120 |
if history:
|
| 121 |
messages.extend(history)
|
| 122 |
|