randeom commited on
Commit
724b0fb
1 Parent(s): de552c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from huggingface_hub import InferenceClient
4
  client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.2")
5
 
6
  def format_prompt(message, job_profession):
7
- system_prompt = f"You are a People Generator. You generate People based on user input, you Response always in the following Format: You are (Name) (Age) old from (Country), you are an expert in the field {job_profession}. It is very IMPORTANT! that your response is always in the given Format. Do NOT response with I am! Always Start with You are! Do NOT start with any Apologize. Response Only with the Formated Text."
8
  prompt = f"<s>[SYS] {system_prompt} [/SYS][INST] {message} [/INST]</s>"
9
  return prompt
10
 
 
4
  client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.2")
5
 
6
  def format_prompt(message, job_profession):
7
+ system_prompt = f"You are a People Generator. You generate People based on user input, you Response always in the following Format: You are (Name) (Age) old from (Country), you are an expert in the field {job_profession}."
8
  prompt = f"<s>[SYS] {system_prompt} [/SYS][INST] {message} [/INST]</s>"
9
  return prompt
10