ArchiMathur commited on
Commit
c1f7bbb
·
verified ·
1 Parent(s): 2dcc0c7

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
- if len(results) > 0 and len(results[0].boxes) > 0:
111
- fire_detected = True
112
 
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
+
 
111
 
112
 
113
  # Draw bounding boxes on the frame if fire is detected