nickmuchi commited on
Commit
cb9fc07
1 Parent(s): f0a1088

Update functions.py

Browse files
Files changed (1) hide show
  1. functions.py +1 -1
functions.py CHANGED
@@ -57,7 +57,7 @@ def inference(link, upload):
57
  yt = YouTube(link)
58
  title = yt.title
59
  path = yt.streams.filter(only_audio=True)[0].download(filename="audio.mp4")
60
- results = asr_pipe(path)
61
 
62
  return results['text'], yt.title
63
 
 
57
  yt = YouTube(link)
58
  title = yt.title
59
  path = yt.streams.filter(only_audio=True)[0].download(filename="audio.mp4")
60
+ results = asr_pipe("audio.mp4")
61
 
62
  return results['text'], yt.title
63