CCockrum commited on
Commit
d4c4dc9
·
verified ·
1 Parent(s): 3b17abe

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -0
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