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

Update NURC-SP_Corpus_Minimo.py

Browse files
Files changed (1) hide show
  1. NURC-SP_Corpus_Minimo.py +4 -0
NURC-SP_Corpus_Minimo.py CHANGED
@@ -39,6 +39,10 @@ class NurcSPDataset(GeneratorBasedBuilder):
39
  def _split_generators(self, dl_manager):
40
  prompts_path = dl_manager.download(_PROMPTS_URLS)
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
 
39
  def _split_generators(self, dl_manager):
40
  prompts_path = dl_manager.download(_PROMPTS_URLS)
41
  archive = dl_manager.download(_ARCHIVES)
42
+
43
+ if not archive:
44
+ msg = "NAO TEM ARQUIVO"
45
+ raise ValueError(msg)
46
 
47
  # Define the path_to_clips variable, pointing to the directory where the audio clips are stored
48
  path_to_clips = "segmented_audios" # Update this with the actual path