drvikasgaur commited on
Commit
a543eda
·
verified ·
1 Parent(s): 5bb1349

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -5
app.py CHANGED
@@ -145,11 +145,17 @@ def run_final_analysis():
145
  yes_summary = format_yes_responses()
146
 
147
  prompt = (
148
- "You are a psychiatric clinical assistant. Based on the following symptoms reported by the user, give a brief clinical impression and the possible diagnosis. "
149
- "Symptoms reported:\n"
150
- f"{yes_summary}\n\n"
151
-
152
- )
 
 
 
 
 
 
153
 
154
  output = llm(prompt, max_new_tokens=400, temperature=0.3, do_sample=False)
155
  ai_result = output[0]["generated_text"]
 
145
  yes_summary = format_yes_responses()
146
 
147
  prompt = (
148
+ "You are a psychiatric clinical assistant.\n\n"
149
+ "The user has reported the following symptoms:\n"
150
+ + "\n".join(f"- {symptom}" for symptom in yes_summary.splitlines()) +
151
+ "\n\n"
152
+ "Please respond with the following structure:\n"
153
+ "1. 🧠 Clinical Impression (Brief summary and possible diagnosis)\n"
154
+ "2. 🛠 Recommended Next Steps (Evaluation or management)\n"
155
+ "3. 🇮🇳 Hindi Translation (Translate the entire response into Hindi)\n\n"
156
+ "Now begin your clinical impression directly."
157
+ )
158
+
159
 
160
  output = llm(prompt, max_new_tokens=400, temperature=0.3, do_sample=False)
161
  ai_result = output[0]["generated_text"]