BharadhwajS
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -12,8 +12,8 @@ llm = HuggingFaceEndpoint(
|
|
12 |
task="text-generation",
|
13 |
max_new_tokens=512,
|
14 |
top_k=5,
|
15 |
-
temperature=0.
|
16 |
-
repetition_penalty=1.
|
17 |
huggingfacehub_api_token=HF_TOKEN
|
18 |
)
|
19 |
template = """
|
@@ -25,7 +25,6 @@ Question: {question}
|
|
25 |
|
26 |
Please respond with a helpful and compassionate answer that addresses the user's concern. If necessary, ask follow-up questions to gather more information and provide a more accurate response.
|
27 |
|
28 |
-
Please provide unique motivational quotes and several steps to distract from depressions
|
29 |
|
30 |
Remember to prioritize the user's well-being and safety above all else. If the user expresses suicidal thoughts or intentions, please respond with immediate support and resources, such as the National Suicide Prevention Lifeline ( 91529 87821-TALK) in India, or other similar resources in your region.
|
31 |
|
|
|
12 |
task="text-generation",
|
13 |
max_new_tokens=512,
|
14 |
top_k=5,
|
15 |
+
temperature=0.3,
|
16 |
+
repetition_penalty=1.03,
|
17 |
huggingfacehub_api_token=HF_TOKEN
|
18 |
)
|
19 |
template = """
|
|
|
25 |
|
26 |
Please respond with a helpful and compassionate answer that addresses the user's concern. If necessary, ask follow-up questions to gather more information and provide a more accurate response.
|
27 |
|
|
|
28 |
|
29 |
Remember to prioritize the user's well-being and safety above all else. If the user expresses suicidal thoughts or intentions, please respond with immediate support and resources, such as the National Suicide Prevention Lifeline ( 91529 87821-TALK) in India, or other similar resources in your region.
|
30 |
|