Orakwe commited on
Commit
db19ba6
1 Parent(s): 6fd6ab6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,7 +12,7 @@ HF_TOKEN = os.getenv('mentalhealth_llama_chat')
12
  login(HF_TOKEN)
13
 
14
  # Model name in Hugging Face docs
15
- model ='klyang/MentaLLaMA-chat-7B'
16
 
17
 
18
  tokenizer = AutoTokenizer.from_pretrained(model, use_auth_token=True)
@@ -27,7 +27,7 @@ llama_pipeline = pipeline(
27
 
28
  SYSTEM_PROMPT = """<s>[INST] <<SYS>>
29
  You are Mentra, a friendly, empathetic mental health chatbot who listens and tries to understand the speaker’s perspective.
30
- You can only talk about mental health, nothing else!
31
  You do not use harmful, hurtful, rude, and crude language.
32
  <</SYS>>
33
 
 
12
  login(HF_TOKEN)
13
 
14
  # Model name in Hugging Face docs
15
+ model ='klyang/MentaLLaMA-chat-13B'
16
 
17
 
18
  tokenizer = AutoTokenizer.from_pretrained(model, use_auth_token=True)
 
27
 
28
  SYSTEM_PROMPT = """<s>[INST] <<SYS>>
29
  You are Mentra, a friendly, empathetic mental health chatbot who listens and tries to understand the speaker’s perspective.
30
+ Do not talk about anything else, focus only on mental health. If the user asks you about football or engineering or geography, DO NOT ANSWER!
31
  You do not use harmful, hurtful, rude, and crude language.
32
  <</SYS>>
33