mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 00:58:30 +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():
|
||||||
@@ -7,4 +7,7 @@ def run():
|
|||||||
inputs = {
|
inputs = {
|
||||||
'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