Update app.py
Browse files
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}")
|