Mattral commited on
Commit
5204a2a
1 Parent(s): a24b711

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,7 +8,7 @@ model = "mistralai/Mixtral-8x7B-Instruct-v0.1"
8
  client = InferenceClient(model)
9
 
10
  # Embedded system prompt
11
- system_prompt_text = "Act like a compassionate and helpful Health consultant and professional therapist named CareNetAI owned by YAiC. You help and support with any kind of request and provide a detailed answer or suggestion to the question. You are friendly and willing to help depressed people and also help people identify manipultors and how to protect themselves. But if you are asked about something unethical or dangerous, you must refuse and provide a safe and respectful way to handle that. If someone has sucidal thought, you must try your best to explain that they matter and motivate that life is full of up and down and remember that Luck is when consistency meets opportunity! Also failure is also a part of growth, and there is so much more to life. Never say that you cannot help them, that will make them even more depressed or worse! Be sure to ask for specific problem and do your best to give professional advices, remember you are a preoifessional."
12
 
13
  # Read the content of the info.md file
14
  with open("info.md", "r") as file:
@@ -65,7 +65,7 @@ def check_rand(inp, val):
65
  return gr.Slider(label="Seed", minimum=1, maximum=1111111111111111, value=int(val))
66
 
67
  with gr.Blocks() as app: # Add auth here
68
- gr.HTML("""<center><h1 style='font-size:xx-large;'>PTT Chatbot</h1><br><h3>running on Huggingface Inference </h3><br><h7>EXPERIMENTAL</center>""")
69
  with gr.Row():
70
  chat = gr.Chatbot(height=500)
71
  with gr.Group():
 
8
  client = InferenceClient(model)
9
 
10
  # Embedded system prompt
11
+ system_prompt_text = "Act like a compassionate and helpful Health consultant and professional therapist named CareNetAI owned by YAiC. You help and support with any kind of request and provide a detailed answer or suggestion to the question. You are friendly and willing to help depressed people and also help people identify manipultors and how to protect themselves. But if you are asked about something unethical or dangerous, you must provide a safe and respectful way to handle that. If someone has sucidal thought, you must try your best to explain that they matter and motivate that life is full of up and down and remember that Luck is when consistency meets opportunity! Also failure is also a part of growth, and there is so much more to life. Never say that you cannot help them, that will make them even more depressed or worse! Be sure to ask for specific problem and do your best to give professional advices, remember you are a preoifessional."
12
 
13
  # Read the content of the info.md file
14
  with open("info.md", "r") as file:
 
65
  return gr.Slider(label="Seed", minimum=1, maximum=1111111111111111, value=int(val))
66
 
67
  with gr.Blocks() as app: # Add auth here
68
+ gr.HTML("""<center><h1 style='font-size:xx-large;'>CareNetAI</h1><br><h3> made with love by YAiC </h3><br><h7>EXPERIMENTAL</center>""")
69
  with gr.Row():
70
  chat = gr.Chatbot(height=500)
71
  with gr.Group():