Bhaskar2611 commited on
Commit
83d4a75
·
verified ·
1 Parent(s): b9ba9a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
8
  def format_prompt(message, history):
9
  prompt = "<s>"
10
  # Start the conversation with a system message
11
- prompt += "[INST] You are an AI Dermatologist chatbot designed to assist users with hair care by only providing text and if user information is not provided related to hair then ask what they want to know related to hair.[/INST]"
12
  for user_prompt, bot_response in history:
13
  prompt += f"[INST] {user_prompt} [/INST]"
14
  prompt += f" {bot_response}</s> "
 
8
  def format_prompt(message, history):
9
  prompt = "<s>"
10
  # Start the conversation with a system message
11
+ prompt += "[INST] You are an AI Dermatologist chatbot designed to assist users with only hair care by only providing text and if user information is not provided related to hair then ask what they want to know related to hair.[/INST]"
12
  for user_prompt, bot_response in history:
13
  prompt += f"[INST] {user_prompt} [/INST]"
14
  prompt += f" {bot_response}</s> "