Ex0bit commited on
Commit
303f41f
·
verified ·
1 Parent(s): 2eebe33

rename health to /api/status to avoid HF proxy conflict

Browse files
Files changed (1) hide show
  1. experiments/demo_server.py +1 -1
experiments/demo_server.py CHANGED
@@ -601,7 +601,7 @@ class H(BaseHTTPRequestHandler):
601
  self.wfile.write(body)
602
  elif path == "/favicon.ico":
603
  self.send_response(204); self.end_headers()
604
- elif path == "/health":
605
  self._json({"status": "ok", "models": len(MODELS),
606
  "device": DEVICE, "uptime_s": round(time.time() - _T0, 0)})
607
  else:
 
601
  self.wfile.write(body)
602
  elif path == "/favicon.ico":
603
  self.send_response(204); self.end_headers()
604
+ elif path == "/api/status":
605
  self._json({"status": "ok", "models": len(MODELS),
606
  "device": DEVICE, "uptime_s": round(time.time() - _T0, 0)})
607
  else: