Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,6 @@ tab1 = gr.Interface(
|
|
64 |
)
|
65 |
|
66 |
def predict_on_video(video_in_filepath, video_out_filepath, detection_model, category_index):
|
67 |
-
global detection_model # Declare as a global variable
|
68 |
video_reader = cv2.VideoCapture(video_in_filepath)
|
69 |
frame_h = int(video_reader.get(cv2.CAP_PROP_FRAME_HEIGHT))
|
70 |
frame_w = int(video_reader.get(cv2.CAP_PROP_FRAME_WIDTH))
|
|
|
64 |
)
|
65 |
|
66 |
def predict_on_video(video_in_filepath, video_out_filepath, detection_model, category_index):
|
|
|
67 |
video_reader = cv2.VideoCapture(video_in_filepath)
|
68 |
frame_h = int(video_reader.get(cv2.CAP_PROP_FRAME_HEIGHT))
|
69 |
frame_w = int(video_reader.get(cv2.CAP_PROP_FRAME_WIDTH))
|