Spaces:
Sleeping
Sleeping
Commit
·
daacd5c
1
Parent(s):
43900ae
Update app.py
Browse files
app.py
CHANGED
@@ -242,6 +242,11 @@ def rerank_documents(query, doc_texts):
|
|
242 |
print(f"Error reranking documents: {e}")
|
243 |
return np.zeros(len(doc_texts))
|
244 |
|
|
|
|
|
|
|
|
|
|
|
245 |
@app.get("/health")
|
246 |
async def health_check():
|
247 |
"""Health check endpoint"""
|
|
|
242 |
print(f"Error reranking documents: {e}")
|
243 |
return np.zeros(len(doc_texts))
|
244 |
|
245 |
+
@app.get("/")
|
246 |
+
async def root():
|
247 |
+
return {"message": "Welcome to the FastAPI application! Use the /health endpoint to check health, and /api/query for processing queries."}
|
248 |
+
|
249 |
+
|
250 |
@app.get("/health")
|
251 |
async def health_check():
|
252 |
"""Health check endpoint"""
|