mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-02 07:42:40 +00:00
Fixed: use absolute import, run main as app
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
from {{folder_name}}.crew import {{crew_name}}Crew
|
from crew import {{crew_name}}Crew
|
||||||
|
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
@@ -8,3 +8,6 @@ def run():
|
|||||||
'topic': 'AI LLMs'
|
'topic': 'AI LLMs'
|
||||||
}
|
}
|
||||||
{{crew_name}}Crew().crew().kickoff(inputs=inputs)
|
{{crew_name}}Crew().crew().kickoff(inputs=inputs)
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
run()
|
||||||
Reference in New Issue
Block a user