Spaces:
Running
Running
Update app.py
Browse files
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> "
|