Update main.py
Browse files
main.py
CHANGED
|
@@ -185,6 +185,16 @@ class RespiratoryAnalysisService:
|
|
| 185 |
if config_path.exists():
|
| 186 |
with open(config_path, 'r') as f:
|
| 187 |
self.config = json.load(f)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 188 |
print(f"✅ Configuration loaded from {config_path}")
|
| 189 |
else:
|
| 190 |
# Default configuration for 4-symptom model
|
|
|
|
| 185 |
if config_path.exists():
|
| 186 |
with open(config_path, 'r') as f:
|
| 187 |
self.config = json.load(f)
|
| 188 |
+
|
| 189 |
+
if 'symptom_colors' not in self.config:
|
| 190 |
+
self.config['symptom_colors'] = {
|
| 191 |
+
'fever': '#FF6B6B',
|
| 192 |
+
'cold': '#4ECDC4',
|
| 193 |
+
'fatigue': '#FFEAA7',
|
| 194 |
+
'cough': '#DDA0DD
|
| 195 |
+
}
|
| 196 |
+
print("⚠️ Added missing symptom_colors to config")
|
| 197 |
+
|
| 198 |
print(f"✅ Configuration loaded from {config_path}")
|
| 199 |
else:
|
| 200 |
# Default configuration for 4-symptom model
|