Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -145,11 +145,17 @@ def run_final_analysis():
|
|
145 |
yes_summary = format_yes_responses()
|
146 |
|
147 |
prompt = (
|
148 |
-
|
149 |
-
|
150 |
-
|
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"]
|