Pudding48 commited on
Commit
6f57f13
·
verified ·
1 Parent(s): a8aeb29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -9,6 +9,10 @@ app = FastAPI()
9
  class Query(BaseModel):
10
  query: str
11
 
 
 
 
 
12
  @app.post("/ask")
13
  def ask_question(query: Query):
14
  result = llm_chain.invoke({"query": query.query})
 
9
  class Query(BaseModel):
10
  query: str
11
 
12
+ @app.get("/")
13
+ def root():
14
+ return {"message": "FastAPI backend is running!"}
15
+
16
  @app.post("/ask")
17
  def ask_question(query: Query):
18
  result = llm_chain.invoke({"query": query.query})