BharadhwajS commited on
Commit
01e0929
1 Parent(s): d5d69d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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.1,
16
- repetition_penalty=1.03,
17
  huggingfacehub_api_token=HF_TOKEN
18
  )
19
  template = """
@@ -25,6 +25,8 @@ 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
  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.
29
 
30
  Helpful Answer: """
 
12
  task="text-generation",
13
  max_new_tokens=512,
14
  top_k=5,
15
+ temperature=0.6,
16
+ repetition_penalty=1.05,
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
+ 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
 
32
  Helpful Answer: """