BoldActionMan
commited on
Commit
•
ace143c
1
Parent(s):
d45ed9a
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def process_video(video_file, youtube_url, language_choice):
|
|
21 |
return None
|
22 |
elif youtube_url != None:
|
23 |
yt = YouTube(youtube_url, use_oauth=True, allow_oauth_cache=True)
|
24 |
-
yt.streams.filter(progressive=True, file_extension='mp4').first().download(filename="original")
|
25 |
video_file = "original.mp4"
|
26 |
|
27 |
# Initialize paths and devices
|
|
|
21 |
return None
|
22 |
elif youtube_url != None:
|
23 |
yt = YouTube(youtube_url, use_oauth=True, allow_oauth_cache=True)
|
24 |
+
yt.streams.filter(progressive=True, file_extension='mp4').first().download(filename="original.mp4")
|
25 |
video_file = "original.mp4"
|
26 |
|
27 |
# Initialize paths and devices
|