Spaces:
Build error
Build error
Update src/my_utils.py
Browse files- src/my_utils.py +4 -3
src/my_utils.py
CHANGED
|
@@ -23,6 +23,7 @@ def load_audio(file, sr):
|
|
| 23 |
return np.frombuffer(out, np.float32).flatten()
|
| 24 |
|
| 25 |
def show_stored_files(root_dir):
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
|
|
|
|
|
| 23 |
return np.frombuffer(out, np.float32).flatten()
|
| 24 |
|
| 25 |
def show_stored_files(root_dir):
|
| 26 |
+
files = os.listdir(root_dir)
|
| 27 |
+
for file in files:
|
| 28 |
+
if os.path.isfile(os.path.join(root_dir, file)):
|
| 29 |
+
print(os.path.join(root_dir, file))
|