JamalAG commited on
Commit
09fbb12
·
1 Parent(s): 1068cdc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -10,8 +10,13 @@ def generate_answer(query):
10
  model_kwargs={"temperature": 0.7, "max_length": 64, "max_new_tokens": 512}
11
  )
12
 
13
- template = """Patient's Question: {query}
14
- Doctor's Answer: Thank you for sharing. To better understand your situation, could you please provide more details about your headaches? For example, describe the frequency, intensity, any triggers you've identified, and how you currently manage them.
 
 
 
 
 
15
  """
16
 
17
  prompt = PromptTemplate(template=template, input_variables=["query"])
 
10
  model_kwargs={"temperature": 0.7, "max_length": 64, "max_new_tokens": 512}
11
  )
12
 
13
+ template = """Patient's Description: {patient_description}
14
+
15
+ Doctor's Response: Thank you for sharing details about your headaches. Based on what you've described, it seems like you're managing your symptoms well by identifying triggers, taking naps, practicing yoga, and staying hydrated. It's important to continue these healthy habits.
16
+
17
+ To further assist you, could you provide more insight into any specific patterns you've noticed with your headaches? For example, do they follow a particular schedule or worsen during certain times of the day? Additionally, have you experienced any other associated symptoms that might be relevant?
18
+
19
+ Your proactive approach to managing stress and avoiding triggers is commendable. Let's work together to explore additional strategies that may enhance your overall well-being.
20
  """
21
 
22
  prompt = PromptTemplate(template=template, input_variables=["query"])