Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,12 @@ from typing import TypedDict
|
|
| 9 |
import re
|
| 10 |
import string
|
| 11 |
from duckduckgo_search import DDGS
|
|
|
|
| 12 |
from pytube import YouTube, exceptions as pytube_exceptions
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
import cv2
|
| 14 |
from ultralytics import YOLO
|
| 15 |
import tempfile
|
|
|
|
| 9 |
import re
|
| 10 |
import string
|
| 11 |
from duckduckgo_search import DDGS
|
| 12 |
+
|
| 13 |
from pytube import YouTube, exceptions as pytube_exceptions
|
| 14 |
+
from pytube.innertube import _default_clients
|
| 15 |
+
_default_clients["WEB"]["clientVersion"] = "2.20240401.00.00"
|
| 16 |
+
yt = YouTube(url, use_oauth=False, allow_oauth_cache=True)
|
| 17 |
+
|
| 18 |
import cv2
|
| 19 |
from ultralytics import YOLO
|
| 20 |
import tempfile
|