Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
| 11 |
-
def
|
| 12 |
-
|
| 13 |
-
return {"answer": result["result"]}
|
|
|
|
| 4 |
|
| 5 |
app = FastAPI()
|
| 6 |
|
|
|
|
|
|
|
| 7 |
|
| 8 |
+
@app.get("/")
|
| 9 |
+
def root():
|
| 10 |
+
return {"message": "FastAPI backend is running!"}
|
|
|