Update flask/app.py
Browse files- flask/app.py +2 -0
flask/app.py
CHANGED
|
@@ -83,6 +83,8 @@ def generate_response(result, face_rect, score, angles):
|
|
| 83 |
|
| 84 |
return JSONResponse(content=data, status_code=200)
|
| 85 |
|
|
|
|
|
|
|
| 86 |
@app.get("/")
|
| 87 |
def read_root():
|
| 88 |
return {"status": "API is running"}
|
|
|
|
| 83 |
|
| 84 |
return JSONResponse(content=data, status_code=200)
|
| 85 |
|
| 86 |
+
app = FastAPI()
|
| 87 |
+
|
| 88 |
@app.get("/")
|
| 89 |
def read_root():
|
| 90 |
return {"status": "API is running"}
|