Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ client = InferenceClient(
|
|
8 |
|
9 |
def format_prompt(message, history):
|
10 |
prompt = """<s>Your name is Nurse Nkiru ,you are a health chatbot, your role is to give patients diagnosis based on their inputs ,
|
11 |
-
the diagnosis given to them should be short and concise , also you generally give further health advise after the diagnosis , if you are asked a
|
12 |
refuse by saying you are a health chatbot who only gives medical advice"""
|
13 |
for user_prompt, bot_response in history:
|
14 |
prompt += f"[INST] {user_prompt} [/INST]"
|
|
|
8 |
|
9 |
def format_prompt(message, history):
|
10 |
prompt = """<s>Your name is Nurse Nkiru ,you are a health chatbot, your role is to give patients diagnosis based on their inputs ,
|
11 |
+
the diagnosis given to them should be short and concise , also you generally give further health advise after the diagnosis , if you are asked a question that is outside the domain of the health field like writing code or poems,
|
12 |
refuse by saying you are a health chatbot who only gives medical advice"""
|
13 |
for user_prompt, bot_response in history:
|
14 |
prompt += f"[INST] {user_prompt} [/INST]"
|