Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,8 +13,6 @@ from duckduckgo_search import DDGS
|
|
| 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
|
|
@@ -206,7 +204,8 @@ class SuperSmartAgent:
|
|
| 206 |
temp_path = None
|
| 207 |
|
| 208 |
try:
|
| 209 |
-
yt = YouTube(url)
|
|
|
|
| 210 |
print(f"YouTube video title: {yt.title}")
|
| 211 |
|
| 212 |
# Select a stream. Prioritize progressive MP4.
|
|
|
|
| 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 |
import cv2
|
| 17 |
from ultralytics import YOLO
|
| 18 |
import tempfile
|
|
|
|
| 204 |
temp_path = None
|
| 205 |
|
| 206 |
try:
|
| 207 |
+
#yt = YouTube(url)
|
| 208 |
+
yt = YouTube(url, use_oauth=False, allow_oauth_cache=True)
|
| 209 |
print(f"YouTube video title: {yt.title}")
|
| 210 |
|
| 211 |
# Select a stream. Prioritize progressive MP4.
|