Futi613 commited on
Commit
30b56fa
·
verified ·
1 Parent(s): aa1bd05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -107,6 +107,6 @@ async def predict_captcha(request: ImageRequest):
107
  async def health_check():
108
  return {"status": "ok"}
109
 
110
- if __name__ == "__main__":
111
- import uvicorn
112
- uvicorn.run(app, host="0.0.0.0", port=8000)
 
107
  async def health_check():
108
  return {"status": "ok"}
109
 
110
+ @app.get("/")
111
+ def read_root():
112
+ return {"message": "API is running!"}