drvikasgaur commited on
Commit
b0b56c3
·
verified ·
1 Parent(s): e403b32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -8
app.py CHANGED
@@ -145,18 +145,15 @@ def run_final_analysis():
145
  yes_summary = format_yes_responses()
146
 
147
  prompt = (
148
- "User Symptoms:\n"
149
- + "\n".join(f"- {symptom}" for symptom in yes_summary.splitlines()) +
150
- "\n\n"
151
- "Generate:\n"
152
- "1. Clinical Impression\n"
153
- "2. Suggested Next Steps\n"
154
- "3. Hindi Translation\n\n"
155
- "Start writing now."
156
  )
157
 
158
 
159
 
 
160
  output = llm(prompt, max_new_tokens=400, temperature=0.3, do_sample=False)
161
  ai_result = output[0]["generated_text"]
162
 
 
145
  yes_summary = format_yes_responses()
146
 
147
  prompt = (
148
+ "The user has reported the following symptoms: "
149
+ f"{yes_summary} "
150
+ "Based on these symptoms, please write a short clinical impression summarizing the likely psychiatric condition, suggest possible next steps, and provide a Hindi translation of your response. "
151
+ "Start your answer directly without repeating the symptoms."
 
 
 
 
152
  )
153
 
154
 
155
 
156
+
157
  output = llm(prompt, max_new_tokens=400, temperature=0.3, do_sample=False)
158
  ai_result = output[0]["generated_text"]
159