Spaces:
Sleeping
Sleeping
helloWorld199
commited on
Commit
·
89476e7
1
Parent(s):
400af59
Update src/my_utils.py
Browse files- src/my_utils.py +1 -1
src/my_utils.py
CHANGED
@@ -22,7 +22,7 @@ def load_audio(file, sr):
|
|
22 |
|
23 |
return np.frombuffer(out, np.float32).flatten()
|
24 |
|
25 |
-
def remove_files_and_folders(folder_path):
|
26 |
print("Cleaning gradio cache ...")
|
27 |
try:
|
28 |
shutil.rmtree(folder_path)
|
|
|
22 |
|
23 |
return np.frombuffer(out, np.float32).flatten()
|
24 |
|
25 |
+
def remove_files_and_folders(folder_path= "/tmp/gradio/"):
|
26 |
print("Cleaning gradio cache ...")
|
27 |
try:
|
28 |
shutil.rmtree(folder_path)
|