TaahKay commited on
Commit
38a10c9
·
verified ·
1 Parent(s): 7cad919

Update utils/audio_processing.py

Browse files
Files changed (1) hide show
  1. utils/audio_processing.py +2 -2
utils/audio_processing.py CHANGED
@@ -25,9 +25,9 @@ def download_audio_as_wav(url, max_filesize_mb=70):
25
  max_bytes = max_filesize_mb * 1024 * 1024
26
  output_template = os.path.join(temp_dir, "audio.%(ext)s")
27
 
28
- cookies_b64 = os.getenv("COOKIES_B64")
29
  if not cookies_b64:
30
- raise EnvironmentError("COOKIES_B64 environment variable not set.")
31
 
32
  # Decode and write cookies.txt
33
  with open(temp_cookie_path, "wb") as f:
 
25
  max_bytes = max_filesize_mb * 1024 * 1024
26
  output_template = os.path.join(temp_dir, "audio.%(ext)s")
27
 
28
+ cookies_b64 = os.getenv("cookies")
29
  if not cookies_b64:
30
+ raise EnvironmentError("cookies environment variable not set.")
31
 
32
  # Decode and write cookies.txt
33
  with open(temp_cookie_path, "wb") as f: