Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -92,7 +92,7 @@ def image_predict(image):
|
|
92 |
# send_email(res, annotated_frame_bgr)
|
93 |
return (res, annotated_frame)
|
94 |
|
95 |
-
return ("No
|
96 |
|
97 |
def extract_frames(video):
|
98 |
vidcap = cv2.VideoCapture(video)
|
@@ -124,7 +124,7 @@ def extract_frames(video):
|
|
124 |
|
125 |
frame_no += 1 # Increment frame number
|
126 |
|
127 |
-
return ("No
|
128 |
|
129 |
|
130 |
def take_input(image, video):
|
|
|
92 |
# send_email(res, annotated_frame_bgr)
|
93 |
return (res, annotated_frame)
|
94 |
|
95 |
+
return ("No Accident Detected", None)
|
96 |
|
97 |
def extract_frames(video):
|
98 |
vidcap = cv2.VideoCapture(video)
|
|
|
124 |
|
125 |
frame_no += 1 # Increment frame number
|
126 |
|
127 |
+
return ("No Accident Detected", None)
|
128 |
|
129 |
|
130 |
def take_input(image, video):
|