Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
main.py
CHANGED
|
@@ -132,8 +132,9 @@ def calibrate_confidence(raw_stats: List[float], labels: List[str]) -> float:
|
|
| 132 |
if not raw_stats:
|
| 133 |
return 0.0
|
| 134 |
|
| 135 |
-
|
| 136 |
-
|
|
|
|
| 137 |
|
| 138 |
# 3. CLINICAL PRIORITY SCORING
|
| 139 |
def calculate_priority_score(predictions: List[Dict], domain: str) -> str:
|
|
|
|
| 132 |
if not raw_stats:
|
| 133 |
return 0.0
|
| 134 |
|
| 135 |
+
|
| 136 |
+
top_val = max(raw_stats)
|
| 137 |
+
return float(round(top_val * 100, 2))
|
| 138 |
|
| 139 |
# 3. CLINICAL PRIORITY SCORING
|
| 140 |
def calculate_priority_score(predictions: List[Dict], domain: str) -> str:
|