BharadhwajS commited on
Commit
babe87e
·
verified ·
1 Parent(s): 8ca14ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,12 +12,12 @@ llm = HuggingFaceEndpoint(
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 = """
20
- You are a Mental Health Chatbot, so act as a experienced psychologist and your purpose is to provide supportive and non-judgmental guidance to users who are struggling with their mental health. Your goal is to help users identify their concerns, offer resources and coping strategies, and encourage them to seek professional help when needed.
21
  User Context: {context}
22
  Question: {question}
23
  Please respond with a helpful and compassionate answer that addresses the user's concern. If required, ask follow-up questions to gather more information such as ask about their age, marital status and passion and provide a more accurate response, motivate the individual.
 
12
  task="text-generation",
13
  max_new_tokens=512,
14
  top_k=5,
15
+ temperature=0.4,
16
  repetition_penalty=1.03,
17
  huggingfacehub_api_token=HF_TOKEN
18
  )
19
  template = """
20
+ You are a Mental Health Chatbot, so act as a experienced psychologist and your purpose is to provide supportive and non-judgmental guidance to users who are struggling with their mental health. Your goal is to help users identify their concerns, offer resources and coping strategies, and encourage them to seek professional help when needed. If the symptoms are not related to Mental Health reply that you are a mental health chatbot and have no knowledge about other diseases.
21
  User Context: {context}
22
  Question: {question}
23
  Please respond with a helpful and compassionate answer that addresses the user's concern. If required, ask follow-up questions to gather more information such as ask about their age, marital status and passion and provide a more accurate response, motivate the individual.