Update tasks/audio.py
Browse files- tasks/audio.py +1 -3
tasks/audio.py
CHANGED
@@ -37,9 +37,7 @@ async def evaluate_audio(request: AudioEvaluationRequest):
|
|
37 |
LABEL_MAPPING = {"chainsaw": 0, "environment": 1}
|
38 |
# Load and prepare the dataset
|
39 |
# Because the dataset is gated, we need to use the HF_TOKEN environment variable to authenticate
|
40 |
-
|
41 |
-
dataset = load_dataset(request.dataset_name, token=os.getenv("read-token"))
|
42 |
-
print("Data Loaded !")
|
43 |
|
44 |
# Split dataset
|
45 |
train_test = dataset["train"].train_test_split(
|
|
|
37 |
LABEL_MAPPING = {"chainsaw": 0, "environment": 1}
|
38 |
# Load and prepare the dataset
|
39 |
# Because the dataset is gated, we need to use the HF_TOKEN environment variable to authenticate
|
40 |
+
dataset = load_dataset(request.dataset_name,token=os.getenv("HF_TOKEN"))
|
|
|
|
|
41 |
|
42 |
# Split dataset
|
43 |
train_test = dataset["train"].train_test_split(
|