Phoenix21 commited on
Commit
94cf6c8
·
verified ·
1 Parent(s): 329d3c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -71,13 +71,18 @@ def process_answers(
71
  # Format outputs using results from the pipeline
72
  wellness_report = f"**Wellness Report**\n------------------\n{results['report'].strip()}"
73
 
 
74
  identified_problems = (
75
  "**Identified Problems**\n"
76
  "-----------------------\n"
77
- f"Sleep Problem: {results['problems'].get('sleep_problem', 'N/A')}%\n"
78
- f"Exercise Problem: {results['problems'].get('exercise_problem', 'N/A')}%\n"
79
- f"Stress Problem: {results['problems'].get('stress_problem', 'N/A')}%\n"
80
- f"Diet Problem: {results['problems'].get('diet_problem', 'N/A')}%"
 
 
 
 
81
  )
82
 
83
  recommendations = (
 
71
  # Format outputs using results from the pipeline
72
  wellness_report = f"**Wellness Report**\n------------------\n{results['report'].strip()}"
73
 
74
+ # Updated Identified Problems section to display eight new themes
75
  identified_problems = (
76
  "**Identified Problems**\n"
77
  "-----------------------\n"
78
+ f"Stress Management: {results['problems'].get('stress_management', 'N/A')}%\n"
79
+ f"Low Therapy: {results['problems'].get('low_therapy', 'N/A')}%\n"
80
+ f"Balanced Weight: {results['problems'].get('balanced_weight', 'N/A')}%\n"
81
+ f"Restless Night: {results['problems'].get('restless_night', 'N/A')}%\n"
82
+ f"Lack of Motivation: {results['problems'].get('lack_of_motivation', 'N/A')}%\n"
83
+ f"Gut Health: {results['problems'].get('gut_health', 'N/A')}%\n"
84
+ f"Anxiety: {results['problems'].get('anxiety', 'N/A')}%\n"
85
+ f"Burnout: {results['problems'].get('burnout', 'N/A')}%"
86
  )
87
 
88
  recommendations = (