Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -107,7 +107,7 @@ def analyze(
|
|
| 107 |
"- WBC: 4.0 – 11.0 K/uL\n"
|
| 108 |
"- Lymphocytes: 20 – 40 %\n\n"
|
| 109 |
|
| 110 |
-
|
| 111 |
|
| 112 |
"STRICT RULES:\n"
|
| 113 |
"- Use ONLY the 9 biomarkers above + age, height, weight.\n"
|
|
@@ -147,11 +147,12 @@ def analyze(
|
|
| 147 |
"5. Tabular Mapping\n"
|
| 148 |
" - This section must always include a Markdown table.\n"
|
| 149 |
" - The table must contain exactly five columns:\n"
|
| 150 |
-
" | Biomarker | Value | Status (Low/Normal/High) | Reference Range | AI-Inferred Insight |\n"
|
| 151 |
" - The Reference Range column must be populated with the ranges given in the Patient Summary.\n"
|
| 152 |
" - The first row after the header must begin directly with 'Albumin'.\n"
|
| 153 |
" - Do NOT add any index numbers (0,1,2...) or empty rows.\n"
|
| 154 |
" - Each biomarker must appear exactly once as a separate row.\n\n"
|
|
|
|
|
|
|
| 155 |
|
| 156 |
"6. Enhanced AI Insights & Longitudinal Risk\n"
|
| 157 |
" - Subclinical nutrient predictions ONLY if patterns (MCV + RDW) suggest it — state as possible, not confirmed.\n"
|
|
|
|
| 107 |
"- WBC: 4.0 – 11.0 K/uL\n"
|
| 108 |
"- Lymphocytes: 20 – 40 %\n\n"
|
| 109 |
|
| 110 |
+
"check input of the user according to these ranges and answer as high low normal"
|
| 111 |
|
| 112 |
"STRICT RULES:\n"
|
| 113 |
"- Use ONLY the 9 biomarkers above + age, height, weight.\n"
|
|
|
|
| 147 |
"5. Tabular Mapping\n"
|
| 148 |
" - This section must always include a Markdown table.\n"
|
| 149 |
" - The table must contain exactly five columns:\n"
|
|
|
|
| 150 |
" - The Reference Range column must be populated with the ranges given in the Patient Summary.\n"
|
| 151 |
" - The first row after the header must begin directly with 'Albumin'.\n"
|
| 152 |
" - Do NOT add any index numbers (0,1,2...) or empty rows.\n"
|
| 153 |
" - Each biomarker must appear exactly once as a separate row.\n\n"
|
| 154 |
+
" - Each status column must be calulated by keeping reference range in memory"
|
| 155 |
+
" | Biomarker | Value | Status (Low/Normal/High) | Reference Range | AI-Inferred Insight |\n"
|
| 156 |
|
| 157 |
"6. Enhanced AI Insights & Longitudinal Risk\n"
|
| 158 |
" - Subclinical nutrient predictions ONLY if patterns (MCV + RDW) suggest it — state as possible, not confirmed.\n"
|