Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- rag_system/api.py +4 -0
rag_system/api.py
CHANGED
|
@@ -183,6 +183,10 @@ async def add_process_time_header(request, call_next):
|
|
| 183 |
|
| 184 |
# ββ Ops ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 185 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 186 |
@app.get("/health", response_model=HealthResponse, tags=["ops"])
|
| 187 |
async def health():
|
| 188 |
return HealthResponse(
|
|
|
|
| 183 |
|
| 184 |
# ββ Ops ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 185 |
|
| 186 |
+
@app.get("/", tags=["ops"])
|
| 187 |
+
async def root():
|
| 188 |
+
return {"status": "ok", "service": settings.api_title}
|
| 189 |
+
|
| 190 |
@app.get("/health", response_model=HealthResponse, tags=["ops"])
|
| 191 |
async def health():
|
| 192 |
return HealthResponse(
|