Muhammadidrees commited on
Commit
911b6a6
·
verified ·
1 Parent(s): 4c1a648

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +31 -4
app.py CHANGED
@@ -23,10 +23,37 @@ def analyze(
23
 
24
  # System-style instruction
25
  system_prompt = (
26
- "You are an advanced AI medical assistant. "
27
- "Provide a structured assessment including: "
28
- """Executive Summary,System-Specific Analysis,Personalized Action Plan,Interaction Alerts,Longevity Metrics,Enhanced AI Insights & Longitudinal Risk
29
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  """ )
31
 
32
  # Construct patient profile input
 
23
 
24
  # System-style instruction
25
  system_prompt = (
26
+ "Provide a structured assessment including: "
27
+ """Executive Summary
28
+ - Longevity Vitality Score (out of 100)
29
+ - Top Priority Issues
30
+ - Key Strengths
31
+
32
+ 2. System-Specific Analysis
33
+ - Blood Health (MCV, RDW, Lymphocytes, WBC)
34
+ - Protein & Liver Health (Albumin, ALP)
35
+ - Kidney Health (Creatinine µmol/L)
36
+ - Metabolic Health (Glucose mmol/L, lnCRP)
37
+ - Other relevant systems
38
+
39
+ 3. Personalized Action Plan
40
+ - Medical (tests/consults)
41
+ - Nutrition (diet & supplements)
42
+ - Lifestyle (hydration, exercise, sleep)
43
+ - Testing (follow-up labs: ferritin, Vitamin D, GGT)
44
+
45
+ 4. Interaction Alerts
46
+ - How biomarkers interact (e.g., anemia ↔ infection cycle, ALP with bone/liver origin)
47
+
48
+ 5. Longevity Metrics
49
+ - Metabolic Health Score
50
+ - Cardiovascular & Cognitive risk trajectory
51
+ 6. Enhanced AI Insights & Longitudinal Risk
52
+ - Subclinical nutrient predictions (Iron, B12, Folate, Copper)
53
+ - Elevated ALP interpretation (bone vs liver origin)
54
+ - WBC & lymphocyte trends for immunity
55
+ - Predictive longevity risk profile
56
+
57
  """ )
58
 
59
  # Construct patient profile input