Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import yt_dlp
|
|
7 |
langs = ["None"] + sorted(list(whisper.tokenizer.LANGUAGES.values()))
|
8 |
model_size = list(whisper._MODELS.keys())
|
9 |
|
10 |
-
def get_subtitles(url
|
11 |
# Download subtitles if available
|
12 |
ydl_opts = {
|
13 |
'writesubtitles': True,
|
|
|
7 |
langs = ["None"] + sorted(list(whisper.tokenizer.LANGUAGES.values()))
|
8 |
model_size = list(whisper._MODELS.keys())
|
9 |
|
10 |
+
def get_subtitles(url, langs=['en']):
|
11 |
# Download subtitles if available
|
12 |
ydl_opts = {
|
13 |
'writesubtitles': True,
|