Commit
•
d214656
1
Parent(s):
7ea28ac
Path OS compatibility fix (#1)
Browse files- Path OS compatibility fix (961418cfe271f05bbdb5686a810d56eb8a25e9a5)
Co-authored-by: Mateo Cámara <[email protected]>
gtzan.py
CHANGED
@@ -80,8 +80,8 @@ class Gtzan(datasets.GeneratorBasedBuilder):
|
|
80 |
data = []
|
81 |
|
82 |
for path in paths:
|
83 |
-
label =
|
84 |
-
name =
|
85 |
if name in CORRUPTED_FILES:
|
86 |
continue
|
87 |
|
|
|
80 |
data = []
|
81 |
|
82 |
for path in paths:
|
83 |
+
label = path.parts[-2]
|
84 |
+
name = path.parts[-1]
|
85 |
if name in CORRUPTED_FILES:
|
86 |
continue
|
87 |
|