Spaces:
Sleeping
Sleeping
feat: Update app title to include Spiritual Health Assessment
Browse files- Add ποΈ Spiritual Health Assessment to title
- Update both browser title and header markdown
- Update description to mention spiritual distress assessment
- Reflects new multi-mode capabilities (Medical/Lifestyle/Spiritual/Combined)
Requirements: N/A (UI enhancement)
- GRADIO_6_UPGRADE_REPORT.md +13 -1
- src/interface/gradio_app.py +4 -4
GRADIO_6_UPGRADE_REPORT.md
CHANGED
|
@@ -135,8 +135,9 @@ chatbot = gr.Chatbot(
|
|
| 135 |
|
| 136 |
---
|
| 137 |
|
| 138 |
-
## Git
|
| 139 |
|
|
|
|
| 140 |
```
|
| 141 |
commit 2d5a65b
|
| 142 |
feat: Upgrade to Gradio 6.0.2 with compatibility fixes
|
|
@@ -150,6 +151,17 @@ feat: Upgrade to Gradio 6.0.2 with compatibility fixes
|
|
| 150 |
- Interface successfully running on http://127.0.0.1:7860
|
| 151 |
```
|
| 152 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
---
|
| 154 |
|
| 155 |
## Recommendations
|
|
|
|
| 135 |
|
| 136 |
---
|
| 137 |
|
| 138 |
+
## Git Commits
|
| 139 |
|
| 140 |
+
### 1. Gradio 6.0.2 Upgrade
|
| 141 |
```
|
| 142 |
commit 2d5a65b
|
| 143 |
feat: Upgrade to Gradio 6.0.2 with compatibility fixes
|
|
|
|
| 151 |
- Interface successfully running on http://127.0.0.1:7860
|
| 152 |
```
|
| 153 |
|
| 154 |
+
### 2. Environment Loading Fix
|
| 155 |
+
```
|
| 156 |
+
commit 1567858
|
| 157 |
+
fix: Add load_dotenv() to gradio_app.py for API key loading
|
| 158 |
+
|
| 159 |
+
- Import and call load_dotenv() at the start of gradio_app.py
|
| 160 |
+
- Ensures .env file is loaded before AIClientManager initialization
|
| 161 |
+
- Fixes 'No AI providers available' errors
|
| 162 |
+
- API keys now properly loaded from environment
|
| 163 |
+
```
|
| 164 |
+
|
| 165 |
---
|
| 166 |
|
| 167 |
## Recommendations
|
src/interface/gradio_app.py
CHANGED
|
@@ -130,7 +130,7 @@ def create_session_isolated_interface():
|
|
| 130 |
|
| 131 |
# Gradio 6.x: theme is set via .theme() method after Blocks creation
|
| 132 |
demo = gr.Blocks(
|
| 133 |
-
title=GRADIO_CONFIG.get("title", "Lifestyle Journey
|
| 134 |
analytics_enabled=False
|
| 135 |
)
|
| 136 |
demo.theme = theme
|
|
@@ -141,12 +141,12 @@ def create_session_isolated_interface():
|
|
| 141 |
|
| 142 |
# Header
|
| 143 |
if log_prompts_enabled:
|
| 144 |
-
gr.Markdown("# π₯ Lifestyle Journey
|
| 145 |
gr.Markdown("β οΈ **DEBUG MODE:** LLM prompts and responses are saved to `lifestyle_journey.log`")
|
| 146 |
else:
|
| 147 |
-
gr.Markdown("# π₯ Lifestyle Journey
|
| 148 |
|
| 149 |
-
gr.Markdown("
|
| 150 |
|
| 151 |
# Session info
|
| 152 |
with gr.Row():
|
|
|
|
| 130 |
|
| 131 |
# Gradio 6.x: theme is set via .theme() method after Blocks creation
|
| 132 |
demo = gr.Blocks(
|
| 133 |
+
title=GRADIO_CONFIG.get("title", "π₯ Lifestyle Journey + ποΈ Spiritual Health + π§ͺ Testing Lab + π§ Prompt Editor"),
|
| 134 |
analytics_enabled=False
|
| 135 |
)
|
| 136 |
demo.theme = theme
|
|
|
|
| 141 |
|
| 142 |
# Header
|
| 143 |
if log_prompts_enabled:
|
| 144 |
+
gr.Markdown("# π₯ Lifestyle Journey + ποΈ Spiritual Health Assessment + π§ͺ Testing Lab + π§ Prompt Editor π")
|
| 145 |
gr.Markdown("β οΈ **DEBUG MODE:** LLM prompts and responses are saved to `lifestyle_journey.log`")
|
| 146 |
else:
|
| 147 |
+
gr.Markdown("# π₯ Lifestyle Journey + ποΈ Spiritual Health Assessment + π§ͺ Testing Lab + π§ Prompt Editor")
|
| 148 |
|
| 149 |
+
gr.Markdown("Integrated medical chatbot with lifestyle coaching, spiritual distress assessment, testing system, and prompt customization")
|
| 150 |
|
| 151 |
# Session info
|
| 152 |
with gr.Row():
|