saikanov commited on
Commit
1bf398c
·
verified ·
1 Parent(s): 6b22924

Update src/tech_news/main.py

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