ImranzamanML
commited on
Commit
•
9fc3051
1
Parent(s):
aa90ee7
Update README.md
Browse files
README.md
CHANGED
@@ -27,29 +27,9 @@ dtype = None,
|
|
27 |
load_in_4bit = True)
|
28 |
```
|
29 |
|
30 |
-
## Prompt to use for model answer
|
31 |
|
32 |
-
|
33 |
-
data_prompt = """Analyze the provided text from a mental health perspective. Identify any indicators of emotional distress, coping mechanisms, or psychological well-being. Highlight any potential concerns or positive aspects related to mental health, and provide a brief explanation for each observation.
|
34 |
-
|
35 |
-
### Input:
|
36 |
-
{}
|
37 |
-
|
38 |
-
### Response:
|
39 |
-
{}"""
|
40 |
-
|
41 |
-
EOS_TOKEN = tokenizer.eos_token
|
42 |
-
def formatting_prompt(examples):
|
43 |
-
inputs = examples["Context"]
|
44 |
-
outputs = examples["Response"]
|
45 |
-
texts = []
|
46 |
-
for input_, output in zip(inputs, outputs):
|
47 |
-
text = data_prompt.format(input_, output) + EOS_TOKEN
|
48 |
-
texts.append(text)
|
49 |
-
return { "text" : texts, }
|
50 |
-
```
|
51 |
|
52 |
-
## Using this prompt text to feed into model
|
53 |
text="I'm going through some things with my feelings and myself. I barely sleep and I do nothing but think about how I'm worthless and how I shouldn't be here. I've never tried or contemplated suicide. I've always wanted to fix my issues, but I never get around to it. How can I change my feeling of being worthless to everyone?"
|
54 |
|
55 |
<div style="background-color: #f2f2f2; border-left: 5px solid #4CAF50; padding: 15px; margin: 20px 0;">
|
|
|
27 |
load_in_4bit = True)
|
28 |
```
|
29 |
|
|
|
30 |
|
31 |
+
## Using this text to feed into model for getting the response
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
|
|
|
33 |
text="I'm going through some things with my feelings and myself. I barely sleep and I do nothing but think about how I'm worthless and how I shouldn't be here. I've never tried or contemplated suicide. I've always wanted to fix my issues, but I never get around to it. How can I change my feeling of being worthless to everyone?"
|
34 |
|
35 |
<div style="background-color: #f2f2f2; border-left: 5px solid #4CAF50; padding: 15px; margin: 20px 0;">
|