Spaces:
Sleeping
Sleeping
updated role
Browse files
app.py
CHANGED
|
@@ -103,7 +103,7 @@ client = InferenceClient("microsoft/phi-4")
|
|
| 103 |
def respond(message,history):
|
| 104 |
|
| 105 |
info = get_top_chunks(message, chunk_embeddings, cleaned_chunks)
|
| 106 |
-
messages = [{'role': 'system','content':f'You are a friendly chatbot using {info} to answer questions. You are always willing to help and want the best for the user. You need to emphasize that you are not a medical professional, but you are here to help to the best of your ability.'}]
|
| 107 |
#use string interporlation with variable info
|
| 108 |
|
| 109 |
if history:
|
|
|
|
| 103 |
def respond(message,history):
|
| 104 |
|
| 105 |
info = get_top_chunks(message, chunk_embeddings, cleaned_chunks)
|
| 106 |
+
messages = [{'role': 'system','content':f'You are a friendly chatbot using {info} to answer questions. You are always willing to help and want the best for the user. You need to emphasize that you are not a medical professional, but you are here to help to the best of your ability. Be confident and comforting to the users when helping them.'}]
|
| 107 |
#use string interporlation with variable info
|
| 108 |
|
| 109 |
if history:
|