Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
|
@@ -268,7 +268,7 @@ def home():
|
|
| 268 |
return {"status": "online", "engine": "Deepcastle Hybrid Neural", "platform": "Hugging Face Spaces"}
|
| 269 |
|
| 270 |
|
| 271 |
-
@app.
|
| 272 |
def health():
|
| 273 |
if not os.path.exists(DEEPCASTLE_ENGINE_PATH):
|
| 274 |
return {"status": "error", "message": "Missing engine binary: deepcastle"}
|
|
|
|
| 268 |
return {"status": "online", "engine": "Deepcastle Hybrid Neural", "platform": "Hugging Face Spaces"}
|
| 269 |
|
| 270 |
|
| 271 |
+
@app.api_route("/health", methods=["GET", "HEAD"])
|
| 272 |
def health():
|
| 273 |
if not os.path.exists(DEEPCASTLE_ENGINE_PATH):
|
| 274 |
return {"status": "error", "message": "Missing engine binary: deepcastle"}
|