admin commited on
Commit
d4b7d25
1 Parent(s): 4b9c64a
Files changed (2) hide show
  1. README.md +1 -1
  2. chest_falsetto.py +2 -5
README.md CHANGED
@@ -138,7 +138,7 @@ for item in ds["test"]:
138
 
139
  ## Maintenance
140
  ```bash
141
- GIT_LFS_SKIP_SMUDGE=1 git clone git@hf.co:datasets/ccmusic-database/chest_falsetto
142
  cd chest_falsetto
143
  ```
144
 
 
138
 
139
  ## Maintenance
140
  ```bash
141
+ git clone git@hf.co:datasets/ccmusic-database/chest_falsetto
142
  cd chest_falsetto
143
  ```
144
 
chest_falsetto.py CHANGED
@@ -9,11 +9,9 @@ _NAMES = {
9
  "singing_method": ["falsetto", "chest"],
10
  }
11
 
12
- _DBNAME = os.path.basename(__file__).split(".")[0]
13
 
14
- _HOMEPAGE = f"https://www.modelscope.cn/datasets/ccmusic-database/{_DBNAME}"
15
-
16
- _DOMAIN = f"https://www.modelscope.cn/api/v1/datasets/ccmusic-database/{_DBNAME}/repo?Revision=master&FilePath=data"
17
 
18
  _URLS = {
19
  "audio": f"{_DOMAIN}/audio.zip",
@@ -113,7 +111,6 @@ class chest_falsetto(datasets.GeneratorBasedBuilder):
113
  random.shuffle(trainset)
114
  random.shuffle(validset)
115
  random.shuffle(testset)
116
-
117
  return [
118
  datasets.SplitGenerator(
119
  name=datasets.Split.TRAIN, gen_kwargs={"files": trainset}
 
9
  "singing_method": ["falsetto", "chest"],
10
  }
11
 
12
+ _HOMEPAGE = f"https://www.modelscope.cn/datasets/ccmusic-database/{os.path.basename(__file__)[:-3]}"
13
 
14
+ _DOMAIN = f"{_HOMEPAGE}/resolve/master/data"
 
 
15
 
16
  _URLS = {
17
  "audio": f"{_DOMAIN}/audio.zip",
 
111
  random.shuffle(trainset)
112
  random.shuffle(validset)
113
  random.shuffle(testset)
 
114
  return [
115
  datasets.SplitGenerator(
116
  name=datasets.Split.TRAIN, gen_kwargs={"files": trainset}