ASesYusuf1 commited on
Commit
57b3cc7
·
verified ·
1 Parent(s): 7b79193

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -17,6 +17,10 @@ import matchering as mg
17
  from typing import Any, Optional
18
  import spaces # Added for @spaces.GPU
19
 
 
 
 
 
20
  # Logging setup
21
  logging.basicConfig(level=logging.INFO)
22
  logger = logging.getLogger(__name__)
@@ -322,9 +326,6 @@ button:hover {
322
  }
323
  """
324
 
325
- import scipy.io.wavfile
326
- import os
327
-
328
  def download_audio(url, cookie_file):
329
  ydl_opts = {
330
  'format': 'bestaudio/best',
 
17
  from typing import Any, Optional
18
  import spaces # Added for @spaces.GPU
19
 
20
+ # Add this import if not already present
21
+ import yt_dlp
22
+ import scipy.io.wavfile # For audio processing
23
+
24
  # Logging setup
25
  logging.basicConfig(level=logging.INFO)
26
  logger = logging.getLogger(__name__)
 
326
  }
327
  """
328
 
 
 
 
329
  def download_audio(url, cookie_file):
330
  ydl_opts = {
331
  'format': 'bestaudio/best',