Pudding48 commited on
Commit
5190ce9
·
verified ·
1 Parent(s): e9db685

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -4,10 +4,7 @@ from qabot import llm_chain
4
 
5
  app = FastAPI()
6
 
7
- class Query(BaseModel):
8
- query: str
9
 
10
- @app.post("/ask")
11
- def ask_question(query: Query):
12
- result = llm_chain.invoke({"query": query.query})
13
- return {"answer": result["result"]}
 
4
 
5
  app = FastAPI()
6
 
 
 
7
 
8
+ @app.get("/")
9
+ def root():
10
+ return {"message": "FastAPI backend is running!"}