redsky17 commited on
Commit
50f78fd
·
verified ·
1 Parent(s): fb34eff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -12,7 +12,8 @@ import tempfile
12
  from pathlib import Path
13
 
14
  print("Loading dependencies...")
15
-
 
16
  # Check device
17
  DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
18
  print(f"Device: {DEVICE}")
 
12
  from pathlib import Path
13
 
14
  print("Loading dependencies...")
15
+ # Set torchaudio backend to soundfile (more compatible)
16
+ torchaudio.set_audio_backend("soundfile")
17
  # Check device
18
  DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
19
  print(f"Device: {DEVICE}")