We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16c4516 commit fba6d1bCopy full SHA for fba6d1b
src/service/namespace.py
@@ -20,8 +20,12 @@ def create_namespace(self, name: str) -> dict:
20
if os.path.exists(home_path):
21
raise FileExistsError("Namespace already exists")
22
23
+ # Prepare the namespace directory structure.
24
os.makedirs(os.path.join(home_path, "voices"), exist_ok=True)
25
os.makedirs(os.path.join(home_path, "outputs"), exist_ok=True)
26
+ os.makedirs(os.path.join(home_path, "training-audios"), exist_ok=True)
27
+ os.makedirs(os.path.join(home_path, "models"), exist_ok=True)
28
+
29
namespace = {"name": name, "createdAt": int(datetime.now(tz=timezone.utc).timestamp() * 1000), "homePath": home_path}
30
self._save_namespace_metadata(namespace)
31
return namespace
0 commit comments