dylan-plummer commited on
Commit
d6e1889
·
1 Parent(s): b98cfdf

start and end time as timestamps

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -58,7 +58,7 @@ def inference(stream_url, start_time, end_time, count_only_api, api_key,
58
  api_call=False,
59
  progress=gr.Progress()):
60
  progress(0, desc="Starting...")
61
- x = download_clips(stream_url, os.getcwd(), int(start_time), int(end_time))
62
  # check if GPU is available
63
  if torch.cuda.is_available():
64
  providers = [("CUDAExecutionProvider", {"device_id": torch.cuda.current_device(),
 
58
  api_call=False,
59
  progress=gr.Progress()):
60
  progress(0, desc="Starting...")
61
+ x = download_clips(stream_url, os.getcwd(), start_time, end_time)
62
  # check if GPU is available
63
  if torch.cuda.is_available():
64
  providers = [("CUDAExecutionProvider", {"device_id": torch.cuda.current_device(),