Test USE_OPTIMIZED_THRESHOLD = True
Browse files
app.py
CHANGED
|
@@ -51,7 +51,7 @@ labels = [
|
|
| 51 |
num_labels = len(labels)
|
| 52 |
|
| 53 |
# Toggle between optimized per-class thresholds and a fixed 0.5 cutoff
|
| 54 |
-
USE_OPTIMIZED_THRESHOLD =
|
| 55 |
|
| 56 |
# If using GPU
|
| 57 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
|
| 51 |
num_labels = len(labels)
|
| 52 |
|
| 53 |
# Toggle between optimized per-class thresholds and a fixed 0.5 cutoff
|
| 54 |
+
USE_OPTIMIZED_THRESHOLD = True
|
| 55 |
|
| 56 |
# If using GPU
|
| 57 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|