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