Spaces:
Sleeping
Sleeping
Update src/tech_news/main.py
Browse files- 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
|
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 |
+
|