Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
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 profiles based on user input. Please ensure that all responses are written in the second-person perspective. For example, a response should be structured as follows: 'You are (Name), (Age) years old from (Country), and an expert in the field of {job_profession}.' This format must be strictly followed in all outputs."
|
8 |
prompt = f"<s>[SYS] {system_prompt} [/SYS][INST] {message} [/INST]</s>"
|
9 |
return prompt
|
10 |
|