PrashanthB461 commited on
Commit
481fa07
·
verified ·
1 Parent(s): 16418f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -50,7 +50,7 @@ CONFIG = {
50
  "domain": "login"
51
  },
52
  "PUBLIC_URL_BASE": "https://huggingface.co/spaces/PrashanthB461/AI_Safety_Demo2/resolve/main/static/output/",
53
- "FRAME_SKIP": 50,
54
  "CONFIDENCE_THRESHOLDS": {
55
  "no_helmet": 0.6, # Increased to reduce false positives
56
  "no_harness": 0.15,
@@ -61,7 +61,7 @@ CONFIG = {
61
  "IOU_THRESHOLD": 0.4,
62
  "MIN_VIOLATION_FRAMES": 2,
63
  "HELMET_CONFIDENCE_THRESHOLD": 0.65, # Lowered to mark more workers as compliant
64
- "MAX_PROCESSING_TIME": 90
65
  }
66
 
67
  # Setup logging
 
50
  "domain": "login"
51
  },
52
  "PUBLIC_URL_BASE": "https://huggingface.co/spaces/PrashanthB461/AI_Safety_Demo2/resolve/main/static/output/",
53
+ "FRAME_SKIP": 1,
54
  "CONFIDENCE_THRESHOLDS": {
55
  "no_helmet": 0.6, # Increased to reduce false positives
56
  "no_harness": 0.15,
 
61
  "IOU_THRESHOLD": 0.4,
62
  "MIN_VIOLATION_FRAMES": 2,
63
  "HELMET_CONFIDENCE_THRESHOLD": 0.65, # Lowered to mark more workers as compliant
64
+ "MAX_PROCESSING_TIME": 60
65
  }
66
 
67
  # Setup logging