Update app.py
Browse files
app.py
CHANGED
|
@@ -314,7 +314,7 @@ def inference(in_video, stream_url, start_time, end_time, beep_detection_on, eve
|
|
| 314 |
batch_list = []
|
| 315 |
idx_list = []
|
| 316 |
inference_futures = []
|
| 317 |
-
with concurrent.futures.ThreadPoolExecutor(max_workers=
|
| 318 |
for i in range(0, length + stride_length - stride_pad, stride_length):
|
| 319 |
batch = all_frames[i:i + seq_len]
|
| 320 |
Xlist = []
|
|
|
|
| 314 |
batch_list = []
|
| 315 |
idx_list = []
|
| 316 |
inference_futures = []
|
| 317 |
+
with concurrent.futures.ThreadPoolExecutor(max_workers=2) as executor:
|
| 318 |
for i in range(0, length + stride_length - stride_pad, stride_length):
|
| 319 |
batch = all_frames[i:i + seq_len]
|
| 320 |
Xlist = []
|