RodrigoLimaRFL commited on
Commit
6f70c18
·
verified ·
1 Parent(s): 053831d

Update NURC-SP_Corpus_Minimo.py

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