admin commited on
Commit
9035011
1 Parent(s): 7ca6a63
Files changed (2) hide show
  1. README.md +1 -1
  2. acapella.py +3 -6
README.md CHANGED
@@ -82,7 +82,7 @@ Chinese, English
82
 
83
  ## Maintenance
84
  ```bash
85
- GIT_LFS_SKIP_SMUDGE=1 git clone [email protected]:datasets/ccmusic-database/acapella
86
  cd acapella
87
  ```
88
 
 
82
 
83
  ## Maintenance
84
  ```bash
85
+ git clone [email protected]:datasets/ccmusic-database/acapella
86
  cd acapella
87
  ```
88
 
acapella.py CHANGED
@@ -9,12 +9,9 @@ _NAMES = {
9
  "singers": [f"singer{i}" for i in range(1, 23)],
10
  }
11
 
12
- _DBNAME = os.path.basename(__file__).split(".")[0]
13
-
14
- _DOMAIN = f"https://www.modelscope.cn/api/v1/datasets/ccmusic-database/{_DBNAME}/repo?Revision=master&FilePath=data"
15
-
16
- _HOMEPAGE = f"https://www.modelscope.cn/datasets/ccmusic-database/{_DBNAME}"
17
 
 
18
 
19
  _URLS = {
20
  "audio": f"{_DOMAIN}/audio.zip",
@@ -60,7 +57,7 @@ class acapella(datasets.GeneratorBasedBuilder):
60
  csv_files = dl_manager.download(f"{_DOMAIN}/{index}.csv")
61
  song_eval = pd.read_csv(csv_files, index_col="singer_id")
62
  scores = []
63
- for i in range(22):
64
  scores.append(
65
  {
66
  "pitch": song_eval.iloc[i]["pitch"],
 
9
  "singers": [f"singer{i}" for i in range(1, 23)],
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",
 
57
  csv_files = dl_manager.download(f"{_DOMAIN}/{index}.csv")
58
  song_eval = pd.read_csv(csv_files, index_col="singer_id")
59
  scores = []
60
+ for i in range(len(_NAMES["singers"])):
61
  scores.append(
62
  {
63
  "pitch": song_eval.iloc[i]["pitch"],