Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -173,7 +173,10 @@ class ChatRequest(BaseModel):
|
|
| 173 |
class ChatResponse(BaseModel):
|
| 174 |
response: str
|
| 175 |
|
| 176 |
-
|
|
|
|
|
|
|
|
|
|
| 177 |
@app.get("/healthz")
|
| 178 |
async def health_check(request: Request):
|
| 179 |
ready = bool(getattr(request.app.state, "retriever", None) and getattr(request.app.state, "db_pool", None))
|
|
|
|
| 173 |
class ChatResponse(BaseModel):
|
| 174 |
response: str
|
| 175 |
|
| 176 |
+
@app.get("/")
|
| 177 |
+
def read_root():
|
| 178 |
+
return {"status": "ok", "message": "Chatbot API đang chạy!"}
|
| 179 |
+
|
| 180 |
@app.get("/healthz")
|
| 181 |
async def health_check(request: Request):
|
| 182 |
ready = bool(getattr(request.app.state, "retriever", None) and getattr(request.app.state, "db_pool", None))
|