Commit
·
43021dd
1
Parent(s):
79ade52
added dunder init
Browse files- __pycache__/app.cpython-311.pyc +0 -0
- app.py +4 -0
__pycache__/app.cpython-311.pyc
ADDED
Binary file (5.96 kB). View file
|
|
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
from fastapi import FastAPI, File, UploadFile
|
2 |
from fastapi.responses import JSONResponse
|
3 |
from datetime import datetime
|
@@ -92,3 +93,6 @@ def call_crew_kickoff(str_current_datetime):
|
|
92 |
result = crew.kickoff(inputs={'datetime': str_current_datetime})
|
93 |
|
94 |
return result
|
|
|
|
|
|
|
|
1 |
+
import uvicorn
|
2 |
from fastapi import FastAPI, File, UploadFile
|
3 |
from fastapi.responses import JSONResponse
|
4 |
from datetime import datetime
|
|
|
93 |
result = crew.kickoff(inputs={'datetime': str_current_datetime})
|
94 |
|
95 |
return result
|
96 |
+
|
97 |
+
if __name__=='__main__':
|
98 |
+
uvicorn.run('app:app', reload=True)
|