Spaces:
Sleeping
Sleeping
Fix device='cpu'
Browse files
app.py
CHANGED
@@ -53,8 +53,7 @@ def predict_video(video_input):
|
|
53 |
success, frame = video_reader.read()
|
54 |
|
55 |
if success:
|
56 |
-
|
57 |
-
results = detection_model(frame, device=0)
|
58 |
|
59 |
# Visualize the results on the frame
|
60 |
annotated_frame = results[0].plot()
|
|
|
53 |
success, frame = video_reader.read()
|
54 |
|
55 |
if success:
|
56 |
+
results = detection_model(frame, device='cpu')
|
|
|
57 |
|
58 |
# Visualize the results on the frame
|
59 |
annotated_frame = results[0].plot()
|