Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,8 @@ def whisper_transcript(model_size,url,audio_file):
|
|
9 |
source = link.streams.filter(only_audio=True)[0].download(filename="audio.mp4")
|
10 |
|
11 |
else:
|
12 |
-
|
|
|
13 |
|
14 |
if model_size.endswith(".en"):
|
15 |
language = "english"
|
|
|
9 |
source = link.streams.filter(only_audio=True)[0].download(filename="audio.mp4")
|
10 |
|
11 |
else:
|
12 |
+
source = audio_file
|
13 |
+
|
14 |
|
15 |
if model_size.endswith(".en"):
|
16 |
language = "english"
|