Files changed (1) hide show
  1. vox_celeb.py +4 -1
vox_celeb.py CHANGED
@@ -29,6 +29,9 @@ import pandas as pd
29
  import requests
30
 
31
  import datasets
 
 
 
32
 
33
  _CITATION = """\
34
  @Article{Nagrani19,
@@ -198,7 +201,7 @@ class VoxCeleb(datasets.GeneratorBasedBuilder):
198
  lengths = []
199
  start_positions = []
200
  for url in sources:
201
- head = requests.head(url)
202
  if head.status_code == 401:
203
  raise ValueError("failed to authenticate with VoxCeleb host")
204
  if head.status_code < 200 or head.status_code >= 300:
 
29
  import requests
30
 
31
  import datasets
32
+ import urllib3
33
+
34
+ urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
35
 
36
  _CITATION = """\
37
  @Article{Nagrani19,
 
201
  lengths = []
202
  start_positions = []
203
  for url in sources:
204
+ head = requests.head(url,timeout=5,stream=True,allow_redirects=True,verify=False)
205
  if head.status_code == 401:
206
  raise ValueError("failed to authenticate with VoxCeleb host")
207
  if head.status_code < 200 or head.status_code >= 300: