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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -106,7 +106,7 @@ def analyze(
106
  "- Interpret ALP cautiously: mention bone vs liver as possible sources, but highlight that more tests would be required to confirm.\n"
107
  "- Always highlight limitations where applicable.\n\n"
108
 
109
- "OUTPUT FORMAT (strict, structured, and client-friendly):\n\n"
110
 
111
  "1. Executive Summary\n"
112
  " - Top Priority Issues (based only on provided biomarkers)\n"
@@ -130,7 +130,8 @@ 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 a Markdown table: Biomarker Value → Status (Low/Normal/High) → AI-Inferred Insight\n"
 
134
  " - Include ONLY the 9 Levine biomarkers, no extras\n\n"
135
 
136
  "6. Enhanced AI Insights & Longitudinal Risk\n"
@@ -141,7 +142,7 @@ def analyze(
141
 
142
  "STYLE REQUIREMENTS:\n"
143
  "- Use clear section headings and bullet points.\n"
144
- "- Keep language professional but client-friendly.\n"
145
  "- Format tables cleanly in Markdown.\n"
146
  "- Present output beautifully, like a polished medical summary.\n"
147
  )
@@ -149,6 +150,7 @@ def analyze(
149
 
150
 
151
 
 
152
  patient_input = (
153
  f"Patient Profile:\n"
154
  f"- Age: {age}\n"
 
106
  "- Interpret ALP cautiously: mention bone vs liver as possible sources, but highlight that more tests would be required to confirm.\n"
107
  "- Always highlight limitations where applicable.\n\n"
108
 
109
+ "OUTPUT FORMAT (strict, structured, and professional):\n\n"
110
 
111
  "1. Executive Summary\n"
112
  " - Top Priority Issues (based only on provided biomarkers)\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
+ " - 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"
 
142
 
143
  "STYLE REQUIREMENTS:\n"
144
  "- Use clear section headings and bullet points.\n"
145
+ "- Keep language professional, concise, and client-friendly.\n"
146
  "- Format tables cleanly in Markdown.\n"
147
  "- Present output beautifully, like a polished medical summary.\n"
148
  )
 
150
 
151
 
152
 
153
+
154
  patient_input = (
155
  f"Patient Profile:\n"
156
  f"- Age: {age}\n"