randeom commited on
Commit
6324e36
1 Parent(s): 47bcb45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -1,10 +1,10 @@
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
 
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, 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 you response always in the given Format. Do NOT response with I am! Always Start with You are!"
8
  prompt = f"<s>[SYS] {system_prompt} [/SYS][INST] {message} [/INST]</s>"
9
  return prompt
10
 
@@ -62,5 +62,4 @@ with gr.Blocks(css=css) as demo:
62
  outputs=output_area
63
  )
64
 
65
- demo.launch(debug=True)
66
-
 
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
 
4
+ client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.1")
5
 
6
  def format_prompt(message, job_profession):
7
+ system_prompt = f"You are a People Generator. You generate People based on user input, 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 you response always in the given Format. Do NOT response with I am! Always Start with You are! Do NOT Apologize for previous messages."
8
  prompt = f"<s>[SYS] {system_prompt} [/SYS][INST] {message} [/INST]</s>"
9
  return prompt
10
 
 
62
  outputs=output_area
63
  )
64
 
65
+ demo.launch(share=True)