thechaiexperiment commited on
Commit
ad1a600
·
verified ·
1 Parent(s): 1d687a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -27
app.py CHANGED
@@ -550,21 +550,9 @@ def get_completion(prompt: str, model: str = "sophosympatheia/rogue-rose-103b-v0
550
  raise HTTPException(status_code=500, detail=str(e))
551
 
552
 
553
-
554
-
555
-
556
-
557
-
558
-
559
-
560
-
561
-
562
-
563
-
564
-
565
  @app.get("/")
566
  async def root():
567
- return {"message": "Welcome to the FastAPI application! Use the /health endpoint to check health, and /api/query for processing queries."}
568
 
569
  @app.get("/health")
570
  async def health_check():
@@ -577,10 +565,6 @@ async def health_check():
577
  }
578
  return status
579
 
580
-
581
-
582
-
583
-
584
  @app.post("/api/ask")
585
  async def chat(query: ChatQuery):
586
  try:
@@ -621,16 +605,7 @@ async def chat(query: ChatQuery):
621
  raise e
622
  except Exception as e:
623
  raise HTTPException(status_code=500, detail=str(e))
624
-
625
-
626
-
627
-
628
-
629
-
630
-
631
-
632
-
633
-
634
 
635
  @app.post("/api/chat")
636
  async def chat_endpoint(chat_query: ChatQuery):
 
550
  raise HTTPException(status_code=500, detail=str(e))
551
 
552
 
 
 
 
 
 
 
 
 
 
 
 
 
553
  @app.get("/")
554
  async def root():
555
+ return {"message": "Welcome to TeaRAG! Your Medical Assistant Powered by RAG"}
556
 
557
  @app.get("/health")
558
  async def health_check():
 
565
  }
566
  return status
567
 
 
 
 
 
568
  @app.post("/api/ask")
569
  async def chat(query: ChatQuery):
570
  try:
 
605
  raise e
606
  except Exception as e:
607
  raise HTTPException(status_code=500, detail=str(e))
608
+
 
 
 
 
 
 
 
 
 
609
 
610
  @app.post("/api/chat")
611
  async def chat_endpoint(chat_query: ChatQuery):