arham061 commited on
Commit
47ddef0
1 Parent(s): 53fde4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
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)