dylanplummer commited on
Commit
23354bf
·
verified ·
1 Parent(s): ec22388

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=4) 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 = []
 
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 = []