Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
8674838
1
Parent(s):
448ae42
Add code
Browse files
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:
|