Update app.py
Browse files
app.py
CHANGED
@@ -14,9 +14,9 @@ from datasets import load_dataset
|
|
14 |
import torchaudio
|
15 |
import torch
|
16 |
|
17 |
-
#
|
|
|
18 |
|
19 |
-
dataset = load_dataset("librispeech_asr", "clean", split="train")
|
20 |
|
21 |
# Function to load & resample audio
|
22 |
def preprocess_audio(batch):
|
|
|
14 |
import torchaudio
|
15 |
import torch
|
16 |
|
17 |
+
# Fix: Add trust_remote_code=True
|
18 |
+
dataset = load_dataset("librispeech_asr", "clean", split="train", trust_remote_code=True)
|
19 |
|
|
|
20 |
|
21 |
# Function to load & resample audio
|
22 |
def preprocess_audio(batch):
|