Kalpokoch commited on
Commit
06cfc94
·
verified ·
1 Parent(s): d2ed6b8

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +10 -0
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