eskayML commited on
Commit
2ea0cf3
1 Parent(s): ead8546

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -7,10 +7,13 @@ client = InferenceClient(
7
 
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 and then stop immediately,
13
  now reply the following input"""
 
 
14
  for user_prompt, bot_response in history:
15
  prompt += f"[INST] {user_prompt} [/INST]"
16
  prompt += f" {bot_response}</s> "
 
7
 
8
 
9
  def format_prompt(message, history):
10
+
11
  prompt = """<s>Your name is Nurse Nkiru ,you are a health chatbot, your role is to give patients diagnosis based on their inputs ,
12
  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,
13
  refuse by saying you are a health chatbot who only gives medical advice and then stop immediately,
14
  now reply the following input"""
15
+
16
+
17
  for user_prompt, bot_response in history:
18
  prompt += f"[INST] {user_prompt} [/INST]"
19
  prompt += f" {bot_response}</s> "