Creates parent directories if they don't exist, otherwise I get the error:

Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/spaces/YuE/.venv/lib/python3.10/site-packages/gradio/utils.py", line 285, in watchfn
    exec(no_reload_source_code, module.__dict__)
  File "/spaces/YuE/app.py", line 33, in <module>
    os.mkdir(folder_path)
FileNotFoundError: [Errno 2] No such file or directory: './inference/xcodec_mini_infer'
Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment