Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1310,7 +1310,8 @@ try:
|
|
| 1310 |
]
|
| 1311 |
|
| 1312 |
for x, y, label, color in annotations:
|
| 1313 |
-
count = quadrant_count.get(f"Quadrant {
|
|
|
|
| 1314 |
# Safer lookup: reconstruct key
|
| 1315 |
key = next((k for k in quadrant_count.index if label in k), None)
|
| 1316 |
cnt = quadrant_count.get(key, 0) if key else 0
|
|
|
|
| 1310 |
]
|
| 1311 |
|
| 1312 |
for x, y, label, color in annotations:
|
| 1313 |
+
count = quadrant_count.get(f"Quadrant {'I' if label=='Q1' else 'II' if label=='Q2' else 'III' if label=='Q3' else 'IV'}– ...",0)
|
| 1314 |
+
|
| 1315 |
# Safer lookup: reconstruct key
|
| 1316 |
key = next((k for k in quadrant_count.index if label in k), None)
|
| 1317 |
cnt = quadrant_count.get(key, 0) if key else 0
|