Spaces:
Sleeping

PavanKumarD commited on
Commit
2bcdf4b
·
verified ·
1 Parent(s): 1007909

Update app/main.py

Browse files
Files changed (1) hide show
  1. app/main.py +3 -0
app/main.py CHANGED
@@ -41,6 +41,9 @@ BASE_DIR = os.path.dirname(__file__)
41
  faiss_index = faiss.read_index(os.path.join(BASE_DIR, "vector_base", "faiss_index.bin"))
42
  document_chunks = np.load(os.path.join(BASE_DIR, "vector_base", "chunks.npy"), allow_pickle=True).tolist()
43
 
 
 
 
44
 
45
  @app.post("/logout")
46
  async def logout_user(session_id: str = Form(...)):
 
41
  faiss_index = faiss.read_index(os.path.join(BASE_DIR, "vector_base", "faiss_index.bin"))
42
  document_chunks = np.load(os.path.join(BASE_DIR, "vector_base", "chunks.npy"), allow_pickle=True).tolist()
43
 
44
+ @app.get("/")
45
+ def root():
46
+ return {"status": "FinBot awake!"}
47
 
48
  @app.post("/logout")
49
  async def logout_user(session_id: str = Form(...)):