Hadiil commited on
Commit
76142f6
·
verified ·
1 Parent(s): 54024a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -154,4 +154,7 @@ async def extract_text(file: UploadFile) -> str:
154
  # Health check endpoint
155
  @app.get("/health")
156
  async def health_check():
157
- return JSONResponse({"status": "healthy", "models": "loaded"})
 
 
 
 
154
  # Health check endpoint
155
  @app.get("/health")
156
  async def health_check():
157
+ return JSONResponse({"status": "healthy", "models": "loaded"})
158
+ if __name__ == "__main__":
159
+ import uvicorn
160
+ uvicorn.run(app, host="0.0.0.0", port=8000)