Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -151,24 +151,24 @@ def analyze(
|
|
| 151 |
"- Present output beautifully, like a polished medical summary.\n"
|
| 152 |
)
|
| 153 |
|
| 154 |
-
patient_input =
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
|
| 173 |
prompt = system_prompt + "\n" + patient_input
|
| 174 |
|
|
|
|
| 151 |
"- Present output beautifully, like a polished medical summary.\n"
|
| 152 |
)
|
| 153 |
|
| 154 |
+
patient_input =(
|
| 155 |
+
f"Patient Profile:\n"
|
| 156 |
+
f"- Age: {age}\n"
|
| 157 |
+
f"- Gender: {gender}\n"
|
| 158 |
+
f"- Height: {height} cm\n"
|
| 159 |
+
f"- Weight: {weight} kg\n"
|
| 160 |
+
f"- BMI: {bmi}\n\n"
|
| 161 |
+
"Lab Values (with Normal Ranges):\n"
|
| 162 |
+
f"- Albumin: {albumin} g/dL (Normal: 3.5 – 5.0 g/dL)\n"
|
| 163 |
+
f"- Creatinine: {creatinine} mg/dL (Normal: 0.6 – 1.2 mg/dL)\n"
|
| 164 |
+
f"- Glucose: {glucose} mg/dL (Normal: 70 – 99 mg/dL, fasting)\n"
|
| 165 |
+
f"- CRP: {crp} mg/L (Normal: < 3 mg/L)\n"
|
| 166 |
+
f"- MCV: {mcv} fL (Normal: 80 – 100 fL)\n"
|
| 167 |
+
f"- RDW: {rdw} % (Normal: 11.5 – 14.5 %)\n"
|
| 168 |
+
f"- ALP: {alp} U/L (Normal: 44 – 147 U/L)\n"
|
| 169 |
+
f"- WBC: {wbc} K/uL (Normal: 4.0 – 11.0 K/uL)\n"
|
| 170 |
+
f"- Lymphocytes: {lymph} % (Normal: 20 – 40 %)\n"
|
| 171 |
+
)
|
| 172 |
|
| 173 |
prompt = system_prompt + "\n" + patient_input
|
| 174 |
|