Amogh1221 commited on
Commit
b01be1f
·
verified ·
1 Parent(s): 7117d8b

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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.get("/health")
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"}