Anusha806 commited on
Commit
532a092
·
1 Parent(s): 7b11c44

/docscommit

Browse files
Files changed (1) hide show
  1. main.py +6 -2
main.py CHANGED
@@ -21,9 +21,13 @@ app = FastAPI()
21
  # Ensure data directory exists
22
  os.makedirs("data/documents", exist_ok=True)
23
 
 
 
 
 
24
  @app.get("/")
25
- def root():
26
- return {"message": "LLM Claims API is up and running!"}
27
 
28
  @app.post("/evaluate")
29
  async def evaluate_query(query: str = Form(...), file: UploadFile = File(...)):
 
21
  # Ensure data directory exists
22
  os.makedirs("data/documents", exist_ok=True)
23
 
24
+ # @app.get("/")
25
+ # def root():
26
+ # return {"message": "LLM Claims API is up and running!"}
27
+
28
  @app.get("/")
29
+ def redirect_to_docs():
30
+ return RedirectResponse(url="/docs")
31
 
32
  @app.post("/evaluate")
33
  async def evaluate_query(query: str = Form(...), file: UploadFile = File(...)):