mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-28 01:28:14 +00:00
Clean up to match enterprise
This commit is contained in:
@@ -35,6 +35,4 @@ class CrewTrainingHandler(PickleHandler):
|
|||||||
def clear(self) -> None:
|
def clear(self) -> None:
|
||||||
"""Clear the training data by removing the file or resetting its contents."""
|
"""Clear the training data by removing the file or resetting its contents."""
|
||||||
if os.path.exists(self.file_path):
|
if os.path.exists(self.file_path):
|
||||||
with open(self.file_path, "wb") as file:
|
self.save({})
|
||||||
# Overwrite with an empty dictionary
|
|
||||||
self.save({})
|
|
||||||
|
|||||||
Reference in New Issue
Block a user