Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -131,11 +131,11 @@ def analyze_video(video_path):
|
|
| 131 |
test_values = {}
|
| 132 |
r2_scores = {}
|
| 133 |
for label in models:
|
| 134 |
-
|
| 135 |
prediction = models[label].predict([features])[0]
|
| 136 |
test_values[label] = prediction
|
| 137 |
r2_scores[label] = hemoglobin_r2
|
| 138 |
-
|
| 139 |
synthetic_features = [random.uniform(0.5, 2.5), # T3
|
| 140 |
random.uniform(60, 180), # TT4
|
| 141 |
random.uniform(0.7, 1.4), # T4U
|
|
|
|
| 131 |
test_values = {}
|
| 132 |
r2_scores = {}
|
| 133 |
for label in models:
|
| 134 |
+
if label == "Hemoglobin":
|
| 135 |
prediction = models[label].predict([features])[0]
|
| 136 |
test_values[label] = prediction
|
| 137 |
r2_scores[label] = hemoglobin_r2
|
| 138 |
+
elif label == "TSH":
|
| 139 |
synthetic_features = [random.uniform(0.5, 2.5), # T3
|
| 140 |
random.uniform(60, 180), # TT4
|
| 141 |
random.uniform(0.7, 1.4), # T4U
|