Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -14,6 +14,10 @@ UVR_MODELS = [
|
|
| 14 |
|
| 15 |
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 16 |
mdxnet_models_dir = os.path.join(BASE_DIR, "mdx_models")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
os.makedirs(mdxnet_models_dir, exist_ok=True)
|
| 18 |
|
| 19 |
|
|
|
|
| 14 |
|
| 15 |
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 16 |
mdxnet_models_dir = os.path.join(BASE_DIR, "mdx_models")
|
| 17 |
+
|
| 18 |
+
# Ensure mdx_models is a directory, not a file
|
| 19 |
+
if os.path.exists(mdxnet_models_dir) and not os.path.isdir(mdxnet_models_dir):
|
| 20 |
+
os.remove(mdxnet_models_dir)
|
| 21 |
os.makedirs(mdxnet_models_dir, exist_ok=True)
|
| 22 |
|
| 23 |
|