RodrigoLimaRFL commited on
Commit
5d4d1a8
·
verified ·
1 Parent(s): 195f5d0

Update NURC-SP_Corpus_Minimo.py

Browse files
Files changed (1) hide show
  1. NURC-SP_Corpus_Minimo.py +5 -5
NURC-SP_Corpus_Minimo.py CHANGED
@@ -5,11 +5,11 @@ from datasets import BuilderConfig, GeneratorBasedBuilder, DatasetInfo, SplitGen
5
 
6
 
7
  _PROMPTS_URLS = {
8
- "def": "segmented_audios.csv",
9
  }
10
 
11
  _ARCHIVES = {
12
- "def": "nurc-sp_corpus_minimo.tar.gz",
13
  }
14
 
15
 
@@ -41,15 +41,15 @@ class NurcSPDataset(GeneratorBasedBuilder):
41
  archive = dl_manager.download(_ARCHIVES)
42
 
43
  # Define the path_to_clips variable, pointing to the directory where the audio clips are stored
44
- path_to_clips = "segmented_audios/" # Update this with the actual path
45
 
46
  return [
47
  SplitGenerator(
48
  name=Split.TRAIN, # Single split
49
  gen_kwargs={
50
- "prompts_path": prompts_path["def"],
51
  "path_to_clips": path_to_clips,
52
- "audio_files": dl_manager.iter_archive(archive["def"]),
53
  }
54
  )
55
  ]
 
5
 
6
 
7
  _PROMPTS_URLS = {
8
+ "train": "segmented_audios.csv",
9
  }
10
 
11
  _ARCHIVES = {
12
+ "train": "nurc-sp_corpus_minimo.tar.gz",
13
  }
14
 
15
 
 
41
  archive = dl_manager.download(_ARCHIVES)
42
 
43
  # Define the path_to_clips variable, pointing to the directory where the audio clips are stored
44
+ path_to_clips = "segmented_audios" # Update this with the actual path
45
 
46
  return [
47
  SplitGenerator(
48
  name=Split.TRAIN, # Single split
49
  gen_kwargs={
50
+ "prompts_path": prompts_path["train"],
51
  "path_to_clips": path_to_clips,
52
+ "audio_files": dl_manager.iter_archive(archive["train"]),
53
  }
54
  )
55
  ]