rajesh1729 commited on
Commit
227da08
1 Parent(s): 30d9cc5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ model = whisper.load_model("base")
9
  summarizer = pipeline("summarization")
10
 
11
  def get_audio(url):
12
- yt = YouTube(url, on_progress_callback=on_progress, use_po_token=True)
13
  audio_stream = yt.streams.get_audio_only()
14
  out_file = audio_stream.download(mp3=True) # This will directly download as mp3
15
  return out_file # Returns the path to the mp3 file
 
9
  summarizer = pipeline("summarization")
10
 
11
  def get_audio(url):
12
+ yt = YouTube(url, on_progress_callback=on_progress)
13
  audio_stream = yt.streams.get_audio_only()
14
  out_file = audio_stream.download(mp3=True) # This will directly download as mp3
15
  return out_file # Returns the path to the mp3 file