Spaces:
Sleeping
Sleeping
File size: 605 Bytes
1bf398c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
#!/usr/bin/env python
import sys
from crew import TechNewsCrew
from datetime import date
# This main file is intended to be a way for you to run your
# crew locally, so refrain from adding unnecessary logic into this file.
# Replace with inputs you want to test with, it will automatically
# interpolate any tasks and agents information
def run(field,since):
"""
Run the crew.
"""
inputs = {
'field': field,
'date': str(date.today()),
'since':str(since)
}
output = TechNewsCrew().crew().kickoff(inputs=inputs)
outputs = str(output)
return outputs
|