freddyaboulton HF Staff commited on
Commit
8674838
·
1 Parent(s): 448ae42
Files changed (1) hide show
  1. search.py +2 -0
search.py CHANGED
@@ -7,6 +7,8 @@ dataset = "mozilla-foundation/common_voice_17_0"
7
  config = "en"
8
 
9
  def _search(paths: list[str]):
 
 
10
  if paths[0].startswith("en_train"):
11
  split = "train"
12
  else:
 
7
  config = "en"
8
 
9
  def _search(paths: list[str]):
10
+ if len(paths) == 0:
11
+ return []
12
  if paths[0].startswith("en_train"):
13
  split = "train"
14
  else: