SonyaHas commited on
Commit
322126e
·
verified ·
1 Parent(s): 45e2c60

Altered role

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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. Be confident and comforting to the users when helping them.'}]
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 at the end of the message, 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: