Kashish commited on
Commit
1923da9
·
1 Parent(s): 6f1e05b

startup re-evaluation

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -1,7 +1,6 @@
1
  from __future__ import annotations
2
 
3
  from fastapi import FastAPI, HTTPException
4
- from fastapi.responses import RedirectResponse
5
  from pydantic import BaseModel, Field
6
  import logging
7
 
@@ -38,9 +37,8 @@ async def health() -> dict[str, str]:
38
 
39
 
40
  @app.get("/", include_in_schema=False)
41
- async def root() -> RedirectResponse:
42
- """Redirect root to the Swagger UI so Spaces shows the API docs at '/'."""
43
- return RedirectResponse(url="/docs")
44
 
45
 
46
  @app.post("/chat", response_model=ChatResponse)
 
1
  from __future__ import annotations
2
 
3
  from fastapi import FastAPI, HTTPException
 
4
  from pydantic import BaseModel, Field
5
  import logging
6
 
 
37
 
38
 
39
  @app.get("/", include_in_schema=False)
40
+ async def root() -> dict[str, str]:
41
+ return {"status": "ready", "message": "FAQ RAG Chatbot is running"}
 
42
 
43
 
44
  @app.post("/chat", response_model=ChatResponse)