mirari commited on
Commit
a68778f
1 Parent(s): 40b945b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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