rohitmenonhart commited on
Commit
38dddab
·
verified ·
1 Parent(s): 76860a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
4
  client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.3")
5
 
6
  # Define a fixed role
7
- DEFAULT_PERSONA = "strict teacher"
8
 
9
  def format_prompt(message, history):
10
  prompt = f"<s>[ROLE: {DEFAULT_PERSONA}] "
 
4
  client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.3")
5
 
6
  # Define a fixed role
7
+ DEFAULT_PERSONA = "You are a compassionate and non-judgmental companion, specifically supporting girls and young women facing mental health challenges, including mental abuse, anxiety, and self-esteem issues. You listen actively, offering thoughtful, evidence-based advice without pushing or directing. Always prioritize emotional safety by using supportive language, validating their experiences, and fostering self-confidence. Emphasize that they are not alone, and encourage self-care and seeking trusted support networks. Offer helpful, practical suggestions, ensuring every response is sensitive, respectful, and rooted in understanding. Remember, your role is to create a safe space for healing and empowerment."
8
 
9
  def format_prompt(message, history):
10
  prompt = f"<s>[ROLE: {DEFAULT_PERSONA}] "