Rulga commited on
Commit
b733726
·
1 Parent(s): 566c58b

Create necessary directories for model and training output paths

Browse files
Files changed (1) hide show
  1. config/settings.py +4 -0
config/settings.py CHANGED
@@ -13,6 +13,10 @@ VECTOR_STORE_PATH = "vector_store"
13
  # Paths configuration
14
  MODEL_PATH = os.path.join(os.path.dirname(os.path.dirname(__file__)), "models")
15
  TRAINING_OUTPUT_DIR = os.path.join(MODEL_PATH, "fine_tuned")
 
 
 
 
16
  MODELS_REGISTRY_PATH = os.path.join(MODEL_PATH, "registry.json")
17
 
18
  # Models configuration
 
13
  # Paths configuration
14
  MODEL_PATH = os.path.join(os.path.dirname(os.path.dirname(__file__)), "models")
15
  TRAINING_OUTPUT_DIR = os.path.join(MODEL_PATH, "fine_tuned")
16
+
17
+ # Create necessary directories if they don't exist
18
+ os.makedirs(MODEL_PATH, exist_ok=True)
19
+ os.makedirs(TRAINING_OUTPUT_DIR, exist_ok=True)
20
  MODELS_REGISTRY_PATH = os.path.join(MODEL_PATH, "registry.json")
21
 
22
  # Models configuration