Minor release till I release checkpoints and urls

This commit is contained in:
Shivam Mehta
2023-09-16 20:37:11 +00:00
parent 88bc7d05eb
commit acb57a3857
2 changed files with 9 additions and 6 deletions

View File

@@ -199,7 +199,10 @@ def get_user_data_dir(appname="matcha_tts"):
ans = Path("~/Library/Application Support/").expanduser()
else:
ans = Path.home().joinpath(".local/share")
return ans.joinpath(appname)
final_path = ans.joinpath(appname)
final_path.mkdir(parents=True, exist_ok=True)
return final_path
def assert_model_downloaded(checkpoint_path, url, use_wget=False):