Add comprehensive model card with usage examples
Browse files
README.md
CHANGED
|
@@ -90,9 +90,13 @@ base_model = AutoModelForCausalLM.from_pretrained(
|
|
| 90 |
model = PeftModel.from_pretrained(base_model, adapter_id)
|
| 91 |
|
| 92 |
# Prepare input
|
| 93 |
-
text = "I feel hopeless and nothing seems to matter anymore. I
|
| 94 |
-
instruction = "Analyze this text for depression indicators. Respond
|
| 95 |
-
prompt = f"{instruction}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
|
| 97 |
# Tokenize and generate
|
| 98 |
inputs = tokenizer(prompt, return_tensors="pt", truncation=True, max_length=1024)
|
|
@@ -145,7 +149,7 @@ This model is designed for research and educational purposes in mental health te
|
|
| 145 |
- Use responsibly and with appropriate human oversight
|
| 146 |
- Consider privacy implications when analyzing personal text
|
| 147 |
- Do not use for discriminatory purposes
|
| 148 |
-
- Complement,
|
| 149 |
|
| 150 |
## Citation
|
| 151 |
|
|
|
|
| 90 |
model = PeftModel.from_pretrained(base_model, adapter_id)
|
| 91 |
|
| 92 |
# Prepare input
|
| 93 |
+
text = "I feel hopeless and nothing seems to matter anymore. I cant find joy in anything."
|
| 94 |
+
instruction = "Analyze this text for depression indicators. Respond depression or non-depression:"
|
| 95 |
+
prompt = f"{instruction}
|
| 96 |
+
|
| 97 |
+
{text}
|
| 98 |
+
|
| 99 |
+
"
|
| 100 |
|
| 101 |
# Tokenize and generate
|
| 102 |
inputs = tokenizer(prompt, return_tensors="pt", truncation=True, max_length=1024)
|
|
|
|
| 149 |
- Use responsibly and with appropriate human oversight
|
| 150 |
- Consider privacy implications when analyzing personal text
|
| 151 |
- Do not use for discriminatory purposes
|
| 152 |
+
- Complement, dont replace, professional mental health services
|
| 153 |
|
| 154 |
## Citation
|
| 155 |
|