mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 00:58:30 +00:00
Merge branch 'main' into fix-issue-2263
This commit is contained in:
@@ -33,7 +33,8 @@ def train():
|
|||||||
Train the crew for a given number of iterations.
|
Train the crew for a given number of iterations.
|
||||||
"""
|
"""
|
||||||
inputs = {
|
inputs = {
|
||||||
"topic": "AI LLMs"
|
"topic": "AI LLMs",
|
||||||
|
'current_year': str(datetime.now().year)
|
||||||
}
|
}
|
||||||
try:
|
try:
|
||||||
{{crew_name}}().crew().train(n_iterations=int(sys.argv[1]), filename=sys.argv[2], inputs=inputs)
|
{{crew_name}}().crew().train(n_iterations=int(sys.argv[1]), filename=sys.argv[2], inputs=inputs)
|
||||||
@@ -59,6 +60,7 @@ def test():
|
|||||||
"topic": "AI LLMs",
|
"topic": "AI LLMs",
|
||||||
"current_year": str(datetime.now().year)
|
"current_year": str(datetime.now().year)
|
||||||
}
|
}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
{{crew_name}}().crew().test(n_iterations=int(sys.argv[1]), eval_llm=sys.argv[2], inputs=inputs)
|
{{crew_name}}().crew().test(n_iterations=int(sys.argv[1]), eval_llm=sys.argv[2], inputs=inputs)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user