Spaces:
Sleeping
Sleeping
sergey21000
commited on
Commit
•
3f611d7
1
Parent(s):
d5a95cc
Update utils.py
Browse files
utils.py
CHANGED
@@ -36,7 +36,7 @@ def detect_video(video_path_or_url: str, model: YOLO, conf: float, iou: float) -
|
|
36 |
progress = gr.Progress()
|
37 |
video_path = video_path_or_url
|
38 |
if 'youtube.com' in video_path_or_url or 'youtu.be' in video_path_or_url:
|
39 |
-
progress(0.001, desc='Downloading
|
40 |
ydl_opts = {'format': 'bestvideo[height<=720]'}
|
41 |
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
|
42 |
video_info_dict = ydl.extract_info(video_path_or_url, download=True)
|
|
|
36 |
progress = gr.Progress()
|
37 |
video_path = video_path_or_url
|
38 |
if 'youtube.com' in video_path_or_url or 'youtu.be' in video_path_or_url:
|
39 |
+
progress(0.001, desc='Downloading video from YouTube...')
|
40 |
ydl_opts = {'format': 'bestvideo[height<=720]'}
|
41 |
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
|
42 |
video_info_dict = ydl.extract_info(video_path_or_url, download=True)
|