Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -146,7 +146,8 @@ def run_final_analysis():
|
|
146 |
|
147 |
prompt = (
|
148 |
f"""The user has reported the following symptoms: {yes_summary}
|
149 |
-
Based on these symptoms, please write a short clinical impression summarizing the likely psychiatric condition and
|
|
|
150 |
"""
|
151 |
)
|
152 |
|
@@ -154,7 +155,7 @@ Based on these symptoms, please write a short clinical impression summarizing th
|
|
154 |
|
155 |
|
156 |
|
157 |
-
output = llm(prompt, max_new_tokens=
|
158 |
ai_result = output[0]["generated_text"]
|
159 |
|
160 |
yield (
|
|
|
146 |
|
147 |
prompt = (
|
148 |
f"""The user has reported the following symptoms: {yes_summary}
|
149 |
+
Based on these symptoms, please write a short clinical impression summarizing the likely psychiatric condition and its further management.
|
150 |
+
On the basis of symptomes mentioned
|
151 |
"""
|
152 |
)
|
153 |
|
|
|
155 |
|
156 |
|
157 |
|
158 |
+
output = llm(prompt, max_new_tokens=300, temperature=0.3, do_sample=False)
|
159 |
ai_result = output[0]["generated_text"]
|
160 |
|
161 |
yield (
|