Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ current_size = 'base'
|
|
7 |
def inference(link):
|
8 |
yt = YouTube(link)
|
9 |
path = yt.streams.filter(only_audio=True)[0].download(filename="audio.mp4")
|
10 |
-
options = whisper.DecodingOptions(without_timestamps=True)
|
11 |
results = loaded_model.transcribe(path)
|
12 |
return results['text']
|
13 |
|
|
|
7 |
def inference(link):
|
8 |
yt = YouTube(link)
|
9 |
path = yt.streams.filter(only_audio=True)[0].download(filename="audio.mp4")
|
10 |
+
options = whisper.DecodingOptions(language= 'Spanish', without_timestamps=True)
|
11 |
results = loaded_model.transcribe(path)
|
12 |
return results['text']
|
13 |
|