Download code/nirnay/__init__.py from nandukmelath/nirnay: direct link, hf CLI and curl.
- Browser
- Download file 682 Bytes
-
https://huggingface.co/nandukmelath/nirnay/resolve/main/code/nirnay/__init__.py
- Command line
-
hf download hf://nandukmelath/nirnay/code/nirnay/__init__.py
-
curl -L -o __init__.py https://huggingface.co/nandukmelath/nirnay/resolve/main/code/nirnay/__init__.py
682 Bytes
| """Nirnay: a deterministic, CPU-first decision model (Jev / Laya compatible question spec). | |
| import nirnay | |
| m = nirnay.load() # models/nirnay-v1 | |
| r = m.predict({"ticket": "my card was charged twice"}, | |
| {"team": {"type": "choice", "instructions": "Which team should handle this?", | |
| "criteria": {"billing": "payments", "technical": "bugs", "sales": "pricing"}}}) | |
| r["answers"]["team"]["choice"] # -> "billing" | |
| """ | |
| from .engine import VERSION, Nirnay, load | |
| from .render import SpecError, render_state | |
| __version__ = VERSION | |
| __all__ = ["Nirnay", "load", "SpecError", "render_state", "__version__"] | |