Download handler.py from Sieddi/mteb-mindsmall-runner: direct link, hf CLI and curl.
- Browser
- Download file 315 Bytes
-
https://huggingface.co/spaces/Sieddi/mteb-mindsmall-runner/resolve/main/handler.py
- Command line
-
hf download hf://spaces/Sieddi/mteb-mindsmall-runner/handler.py
-
curl -L -o handler.py https://huggingface.co/spaces/Sieddi/mteb-mindsmall-runner/resolve/main/handler.py
315 Bytes
| import json | |
| from pathlib import Path | |
| def predict(body): | |
| """Return output file listing for API check.""" | |
| outdir = Path("/app/output") | |
| if outdir.exists(): | |
| files = list(outdir.glob("*.json")) | |
| return {"status": "ok", "files": [f.name for f in files]} | |
| return {"status": "no output yet"} | |