Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -190,11 +190,11 @@ def analyze_face(image):
|
|
190 |
test_values = {}
|
191 |
r2_scores = {}
|
192 |
for label in models:
|
193 |
-
|
194 |
prediction = models[label].predict([features])[0]
|
195 |
test_values[label] = prediction
|
196 |
r2_scores[label] = hemoglobin_r2
|
197 |
-
|
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
|