eskayML commited on
Commit
1849374
·
1 Parent(s): 124214d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 que that is outside the domain of the health field ,
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]"