Skip to content

Commit

Permalink
Clean up to match enterprise
Browse files Browse the repository at this point in the history
  • Loading branch information
bhancockio committed Jan 30, 2025
1 parent 477cce3 commit a658e28
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/crewai/utilities/training_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,4 @@ def append(self, train_iteration: int, agent_id: str, new_data) -> None:
def clear(self) -> None:
"""Clear the training data by removing the file or resetting its contents."""
if os.path.exists(self.file_path):
with open(self.file_path, "wb") as file:
# Overwrite with an empty dictionary
self.save({})
self.save({})

0 comments on commit a658e28

Please sign in to comment.