Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -145,15 +145,15 @@ def run_final_analysis():
|
|
145 |
yes_summary = format_yes_responses()
|
146 |
|
147 |
prompt = (
|
148 |
-
"The user has reported the following symptoms:
|
149 |
-
|
150 |
-
|
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 |
|
|
|
145 |
yes_summary = format_yes_responses()
|
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 provide a Hindi translation of your response.
|
150 |
+
Do not repeat the symptoms."""
|
|
|
151 |
)
|
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 |
|