PrashanthB461 commited on
Commit
763d258
·
verified ·
1 Parent(s): c49fe29

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": 100, # Increased to process fewer frames (1 frame every 5 frames)
54
  "CONFIDENCE_THRESHOLDS": {
55
  "no_helmet": 0.5,
56
  "no_harness": 0.15,
@@ -61,7 +61,7 @@ CONFIG = {
61
  "IOU_THRESHOLD": 0.4,
62
  "MIN_VIOLATION_FRAMES":2, # Reduced to ensure violations are detected with fewer frames
63
  "HELMET_CONFIDENCE_THRESHOLD": 0.7,
64
- "MAX_PROCESSING_TIME": 90 # Enforce 30-second processing limit
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": 50, # Increased to process fewer frames (1 frame every 5 frames)
54
  "CONFIDENCE_THRESHOLDS": {
55
  "no_helmet": 0.5,
56
  "no_harness": 0.15,
 
61
  "IOU_THRESHOLD": 0.4,
62
  "MIN_VIOLATION_FRAMES":2, # Reduced to ensure violations are detected with fewer frames
63
  "HELMET_CONFIDENCE_THRESHOLD": 0.7,
64
+ "MAX_PROCESSING_TIME": 120 # Enforce 30-second processing limit
65
  }
66
 
67
  # Setup logging