Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|