feat: add ability to train on custom file

This commit is contained in:
Eduardo Chiarotti
2024-08-08 19:30:45 -03:00
parent 217f5fc5ac
commit aa8640c086
5 changed files with 25 additions and 17 deletions

View File

@@ -3,14 +3,14 @@ import subprocess
import click
def train_crew(n_iterations: int) -> None:
def train_crew(n_iterations: int, filename: str) -> None:
"""
Train the crew by running a command in the Poetry environment.
Args:
n_iterations (int): The number of iterations to train the crew.
"""
command = ["poetry", "run", "train", str(n_iterations)]
command = ["poetry", "run", "train", str(n_iterations), filename]
try:
if n_iterations <= 0: