Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2384,16 +2384,16 @@ else:
|
|
| 2384 |
# FALLBACK RULE-BASED
|
| 2385 |
recs = []
|
| 2386 |
if dev["lowest_ratio_9_locs"]:
|
| 2387 |
-
recs.append({"point":"1","rec":"Launch spot-inspection sprint at
|
| 2388 |
|
| 2389 |
if parts:
|
| 2390 |
-
recs.append({"point":"2","rec":"
|
| 2391 |
|
| 2392 |
if uc + ua + nm > 0:
|
| 2393 |
-
recs.append({"point":"3","rec":"Enforce photo-based validation.","mit":"
|
| 2394 |
|
| 2395 |
if dev["obj5_q1_divs"] or dev["obj5_q2_divs"]:
|
| 2396 |
-
recs.append({"point":"4","rec":"Assign safety crews to
|
| 2397 |
|
| 2398 |
if dev["obj6_top2_categories"]:
|
| 2399 |
c1, c2 = dev["obj6_top2_categories"]
|
|
|
|
| 2384 |
# FALLBACK RULE-BASED
|
| 2385 |
recs = []
|
| 2386 |
if dev["lowest_ratio_9_locs"]:
|
| 2387 |
+
recs.append({"point":"1","rec":"Launch spot-inspection sprint at across the 9 lowest-ratio locations.","mit":"Enable 3-min QR checklist + automated WhatsApp reminders."})
|
| 2388 |
|
| 2389 |
if parts:
|
| 2390 |
+
recs.append({"point":"2","rec":"real-time monitoring of finding/reporter ratios and resolution lead times per division/individual.","mit":"Trigger coaching alerts to Area PICs & Division"})
|
| 2391 |
|
| 2392 |
if uc + ua + nm > 0:
|
| 2393 |
+
recs.append({"point":"3","rec":"Enforce photo-based validation for Unsafe Condition/Action/Near Miss submissions to ensure accurate categorization.","mit":"System blocks submission if photo evidence or category justification is missing."})
|
| 2394 |
|
| 2395 |
if dev["obj5_q1_divs"] or dev["obj5_q2_divs"]:
|
| 2396 |
+
recs.append({"point":"4","rec":"Assign dedicated safety crews to Quadrant I divisions; enforce One Finding, One Day closure policy for Quadrant II.","mit":"Auto-generate executive escalation reports to VP Operations if any division remains in QI/QII for ≥2 consecutive months."})
|
| 2397 |
|
| 2398 |
if dev["obj6_top2_categories"]:
|
| 2399 |
c1, c2 = dev["obj6_top2_categories"]
|