Update app.py
Browse files
app.py
CHANGED
@@ -32,6 +32,11 @@ def prepare_dataset(example):
|
|
32 |
|
33 |
return example
|
34 |
|
|
|
|
|
|
|
|
|
|
|
35 |
test_dataset = load_dataset("mozilla-foundation/common_voice_13_0", "ur", split="test")
|
36 |
test_dataset = test_dataset.cast_column("audio", Audio(sampling_rate=16000))
|
37 |
test_dataset = test_dataset.map(prepare_dataset, remove_columns=test_dataset.column_names)
|
|
|
32 |
|
33 |
return example
|
34 |
|
35 |
+
# Set the authentication token
|
36 |
+
config.HF_DATASETS_CUSTOM_HEADERS = {
|
37 |
+
"Authorization": "Bearer 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"
|
38 |
+
}
|
39 |
+
|
40 |
test_dataset = load_dataset("mozilla-foundation/common_voice_13_0", "ur", split="test")
|
41 |
test_dataset = test_dataset.cast_column("audio", Audio(sampling_rate=16000))
|
42 |
test_dataset = test_dataset.map(prepare_dataset, remove_columns=test_dataset.column_names)
|