DSatishchandra commited on
Commit
1c86b62
·
verified ·
1 Parent(s): 075335f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -190,11 +190,11 @@ def analyze_face(image):
190
  test_values = {}
191
  r2_scores = {}
192
  for label in models:
193
- if label == "Hemoglobin":
194
  prediction = models[label].predict([features])[0]
195
  test_values[label] = prediction
196
  r2_scores[label] = hemoglobin_r2
197
- elif label == "TSH":
198
  synthetic_features = [random.uniform(0.5, 2.5), # T3
199
  random.uniform(60, 180), # TT4
200
  random.uniform(0.7, 1.4), # T4U
 
190
  test_values = {}
191
  r2_scores = {}
192
  for label in models:
193
+ if label == "Hemoglobin":
194
  prediction = models[label].predict([features])[0]
195
  test_values[label] = prediction
196
  r2_scores[label] = hemoglobin_r2
197
+ elif label == "TSH":
198
  synthetic_features = [random.uniform(0.5, 2.5), # T3
199
  random.uniform(60, 180), # TT4
200
  random.uniform(0.7, 1.4), # T4U