Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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-
|
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 |
-
|
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 |
|