AmnaHassan commited on
Commit
066cc02
·
verified ·
1 Parent(s): 75ec559

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ whisper_model = whisper.load_model("base")
15
  def download_audio(video_url):
16
  """Downloads audio from the YouTube video using yt-dlp with cookies."""
17
  # Get the path to the cookies file from the current directory
18
- cookies_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'cookies.json')
19
 
20
  ydl_opts = {
21
  'format': 'bestaudio/best',
 
15
  def download_audio(video_url):
16
  """Downloads audio from the YouTube video using yt-dlp with cookies."""
17
  # Get the path to the cookies file from the current directory
18
+ cookies_file = 'cookies.json'
19
 
20
  ydl_opts = {
21
  'format': 'bestaudio/best',