init
Browse files- delete_audio.py +1 -1
delete_audio.py
CHANGED
@@ -9,7 +9,7 @@ cache_dir_feature = p_join("download", "feature", direction)
|
|
9 |
line_no_start = int(os.getenv("LINE_NO_START", 0))
|
10 |
line_no_end = int(os.getenv("LINE_NO_END", 10000))
|
11 |
for i in tqdm(range(line_no_start, line_no_end), total=line_no_end-line_no_start):
|
12 |
-
for audio_file in glob(p_join(cache_dir_audio, "*", f"
|
13 |
os.remove(audio_file)
|
14 |
if os.path.exists(p_join(cache_dir_feature, f"{i}.json")):
|
15 |
os.remove(p_join(cache_dir_feature, f"{i}.json"))
|
|
|
9 |
line_no_start = int(os.getenv("LINE_NO_START", 0))
|
10 |
line_no_end = int(os.getenv("LINE_NO_END", 10000))
|
11 |
for i in tqdm(range(line_no_start, line_no_end), total=line_no_end-line_no_start):
|
12 |
+
for audio_file in glob(p_join(cache_dir_audio, "*", f"{i}.*")):
|
13 |
os.remove(audio_file)
|
14 |
if os.path.exists(p_join(cache_dir_feature, f"{i}.json")):
|
15 |
os.remove(p_join(cache_dir_feature, f"{i}.json"))
|