Spaces:
Runtime error
Runtime error
Update dataloader/misc.py
Browse files- dataloader/misc.py +1 -1
dataloader/misc.py
CHANGED
|
@@ -40,7 +40,7 @@ def read_and_config_file(args, input_path, decode=0):
|
|
| 40 |
processed_list += librosa.util.find_files(input_path, ext="MOV")
|
| 41 |
else:
|
| 42 |
# If it's a single file and it's a .wav or .flac, add to processed list
|
| 43 |
-
if input_path.lower().endswith(".mp4") or input_path.lower().endswith(".avi") or input_path.lower().endswith(".mov"):
|
| 44 |
processed_list.append(input_path)
|
| 45 |
else:
|
| 46 |
# Read file paths from the input text file (one path per line)
|
|
|
|
| 40 |
processed_list += librosa.util.find_files(input_path, ext="MOV")
|
| 41 |
else:
|
| 42 |
# If it's a single file and it's a .wav or .flac, add to processed list
|
| 43 |
+
if input_path.lower().endswith(".mp4") or input_path.lower().endswith(".avi") or input_path.lower().endswith(".mov") or input_path.lower().endswith(".webm"):
|
| 44 |
processed_list.append(input_path)
|
| 45 |
else:
|
| 46 |
# Read file paths from the input text file (one path per line)
|