ArchiMathur commited on
Commit
e2c13cc
·
verified ·
1 Parent(s): 6f8a603

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -107,8 +107,7 @@ elif input_option == "Upload Video":
107
 
108
  # Make predictions using your fire detection model
109
  results = model.predict(source=frame, conf=0.5)
110
- # Check if any bounding boxes are detected (fire detected)
111
- if len(results) > 0 and len(results[0].boxes) > 0:
112
  fire_detected = True
113
 
114
  # Draw bounding boxes on the frame if fire is detected
 
107
 
108
  # Make predictions using your fire detection model
109
  results = model.predict(source=frame, conf=0.5)
110
+ if len(results) > 0 and len(results[0].boxes) > 0:
 
111
  fire_detected = True
112
 
113
  # Draw bounding boxes on the frame if fire is detected