Muhammadidrees commited on
Commit
6506887
·
verified ·
1 Parent(s): ff60533

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -11
app.py CHANGED
@@ -130,15 +130,18 @@ def analyze(
130
  " - Describe ONLY interactions among provided biomarkers (e.g., RDW with MCV for anemia trends, ALP bone/liver origin, WBC with CRP for infection/inflammation)\n\n"
131
 
132
  "5. Tabular Mapping\n"
133
- " - Present as a Markdown table with the following columns:\n"
 
134
  " | Biomarker | Value | Status (Low/Normal/High) | AI-Inferred Insight |\n"
135
- " - Include ONLY the 9 Levine biomarkers, no extras\n\n"
 
 
136
 
137
  "6. Enhanced AI Insights & Longitudinal Risk\n"
138
- " - Subclinical nutrient predictions ONLY if patterns (MCV + RDW) suggest it — state as possible, not confirmed\n"
139
- " - ALP interpretation limited to bone vs liver origin (uncertain without further tests)\n"
140
- " - WBC & lymphocyte balance for immunity\n"
141
- " - Risk framing: Highlight if biomarkers suggest resilience or potential stress, but avoid absolute longevity claims\n\n"
142
 
143
  "STYLE REQUIREMENTS:\n"
144
  "- Use clear section headings and bullet points.\n"
@@ -146,11 +149,6 @@ def analyze(
146
  "- Format tables cleanly in Markdown.\n"
147
  "- Present output beautifully, like a polished medical summary.\n"
148
  )
149
-
150
-
151
-
152
-
153
-
154
  patient_input = (
155
  f"Patient Profile:\n"
156
  f"- Age: {age}\n"
 
130
  " - Describe ONLY interactions among provided biomarkers (e.g., RDW with MCV for anemia trends, ALP bone/liver origin, WBC with CRP for infection/inflammation)\n\n"
131
 
132
  "5. Tabular Mapping\n"
133
+ " - This section must always include a Markdown table.\n"
134
+ " - The table must contain exactly four columns:\n"
135
  " | Biomarker | Value | Status (Low/Normal/High) | AI-Inferred Insight |\n"
136
+ " - Include ALL 9 Levine biomarkers (Albumin, Creatinine, Glucose, CRP, MCV, RDW, ALP, WBC, Lymphocytes).\n"
137
+ " - The first row after the header must begin directly with 'Albumin'.\n"
138
+ " - Do not leave any blank or empty rows in the table.\n\n"
139
 
140
  "6. Enhanced AI Insights & Longitudinal Risk\n"
141
+ " - Subclinical nutrient predictions ONLY if patterns (MCV + RDW) suggest it — state as possible, not confirmed.\n"
142
+ " - ALP interpretation limited to bone vs liver origin (uncertain without further tests).\n"
143
+ " - WBC & lymphocyte balance for immunity.\n"
144
+ " - Risk framing: Highlight if biomarkers suggest resilience or potential stress, but avoid absolute longevity claims.\n\n"
145
 
146
  "STYLE REQUIREMENTS:\n"
147
  "- Use clear section headings and bullet points.\n"
 
149
  "- Format tables cleanly in Markdown.\n"
150
  "- Present output beautifully, like a polished medical summary.\n"
151
  )
 
 
 
 
 
152
  patient_input = (
153
  f"Patient Profile:\n"
154
  f"- Age: {age}\n"