Spaces:
Sleeping
Sleeping
Commit
·
2764934
1
Parent(s):
071117a
Added main page route (/)
Browse files
main.py
CHANGED
@@ -233,6 +233,13 @@ def top_token_contributions(q_row: Dict[str, Any], d_row: Dict[str, Any], k: int
|
|
233 |
# Routes
|
234 |
# --------------------------------------------------------------------------------------
|
235 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
236 |
|
237 |
@app.get("/health", response_model=HealthResponse)
|
238 |
async def health() -> HealthResponse:
|
|
|
233 |
# Routes
|
234 |
# --------------------------------------------------------------------------------------
|
235 |
|
236 |
+
@app.get("/")
|
237 |
+
async def root():
|
238 |
+
return {
|
239 |
+
"message": "Dutch SPLADE Embedding API",
|
240 |
+
"docs": "https://moimobrian-py-api.hf.space/docs",
|
241 |
+
"health": "https://moimobrian-py-api.hf.space/health"
|
242 |
+
}
|
243 |
|
244 |
@app.get("/health", response_model=HealthResponse)
|
245 |
async def health() -> HealthResponse:
|