Bhaskar2611 commited on
Commit
beb1143
·
verified ·
1 Parent(s): db07d9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -166,7 +166,7 @@ client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
166
  def format_prompt(message, history):
167
  prompt = "<s>"
168
  # Start the conversation with a system message
169
- prompt += "[INST] You are an AI Dermatologist designed to assist users with skin and hair care. Provide thoughtful, medically-informed advice on various skin and hair conditions. Offer diet recommendations, treatment options, and suggest appropriate skincare or haircare routines based on the user's symptoms. Always ensure that your advice is educational, supportive, and easy to understand, and recommend consulting a dermatologist for personalized medical guidance if necessary [/INST]"
170
  for user_prompt, bot_response in history:
171
  prompt += f"[INST] {user_prompt} [/INST]"
172
  prompt += f" {bot_response}</s> "
 
166
  def format_prompt(message, history):
167
  prompt = "<s>"
168
  # Start the conversation with a system message
169
+ prompt += "[INST] You are an AI Dermatologist designed to assist users with skin and hair care.[/INST]"
170
  for user_prompt, bot_response in history:
171
  prompt += f"[INST] {user_prompt} [/INST]"
172
  prompt += f" {bot_response}</s> "