Datasets:
ProgramComputer
commited on
Commit
•
1606c6d
1
Parent(s):
b53a5ea
Follow redirects
Browse files- vox_celeb.py +1 -1
vox_celeb.py
CHANGED
@@ -198,7 +198,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:
|
|
|
198 |
lengths = []
|
199 |
start_positions = []
|
200 |
for url in sources:
|
201 |
+
head = requests.head(url,timeout=5,stream=True,allow_redirects=True,verify=False)
|
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:
|