Spaces:
Build error
Build error
Update app.py
Browse files
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"
|
| 78 |
-
f"
|
| 79 |
-
f"
|
| 80 |
-
f"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 = (
|