Alovestocode commited on
Commit
e551bf6
·
verified ·
1 Parent(s): 405a7ef

Add root healthcheck and spaces GPU decorator

Browse files
Files changed (2) hide show
  1. __pycache__/app.cpython-313.pyc +0 -0
  2. app.py +5 -0
__pycache__/app.cpython-313.pyc CHANGED
Binary files a/__pycache__/app.cpython-313.pyc and b/__pycache__/app.cpython-313.pyc differ
 
app.py CHANGED
@@ -136,6 +136,11 @@ def _generate(
136
  fastapi_app = FastAPI(title="Router Model API", version="1.0.0")
137
 
138
 
 
 
 
 
 
139
  @fastapi_app.get("/")
140
  def healthcheck() -> dict[str, str]:
141
  return {"status": "ok", "model": MODEL_ID}
 
136
  fastapi_app = FastAPI(title="Router Model API", version="1.0.0")
137
 
138
 
139
+ @fastapi_app.get("/")
140
+ def healthcheck() -> dict[str, str]:
141
+ return {"status": "ok", "model": MODEL_ID}
142
+
143
+
144
  @fastapi_app.get("/")
145
  def healthcheck() -> dict[str, str]:
146
  return {"status": "ok", "model": MODEL_ID}