Skip to content

Commit

Permalink
check信息更新
Browse files Browse the repository at this point in the history
  • Loading branch information
tza17313 committed Apr 28, 2024
1 parent b8c155a commit 9592e69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ async def verify_header(api_key: str = Header(...)):

@app.get("/")
async def top_info():
return {"title": "mt-photos 人脸识别", "link": "https://mtmt.tech/docs/advanced/facial_api"}
return {"title": "mt-photos 人脸识别API", "link": "https://mtmt.tech/docs/advanced/facial_api","detector_backend": detector_backend, "recognition_model": recognition_model}


@app.post("/check")
async def check_req(api_key: str = Depends(verify_header)):
return {'result': 'pass'}
return {'result': 'pass',"detector_backend": detector_backend, "recognition_model": recognition_model}


@app.post("/restart")
Expand Down

0 comments on commit 9592e69

Please sign in to comment.