Download model.py from SUHES/trust-reasoner: direct link, hf CLI and curl.
- Browser
- Download file 224 Bytes
-
https://huggingface.co/SUHES/trust-reasoner/resolve/main/model.py
- Command line
-
hf download hf://SUHES/trust-reasoner/model.py
-
curl -L -o model.py https://huggingface.co/SUHES/trust-reasoner/resolve/main/model.py
224 Bytes
| class TrustReasoner: | |
| def decide(self, reliability, risk): | |
| if reliability > 0.8 and risk < 0.5: | |
| return "comply" | |
| if risk > 0.7: | |
| return "refuse" | |
| return "request_clarification" |