Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
SUHES
/
trust-reasoner
like
0
License:
apache-2.0
Model card
Files
Files and versions
xet
Community
SUHES
commited on
Jan 11
Commit
5afbb53
·
verified
·
1 Parent(s):
33ff76e
Update model.py
Browse files
Files changed (1)
hide
show
model.py
+7
-0
model.py
CHANGED
Viewed
@@ -0,0 +1,7 @@
1
+
class TrustReasoner:
2
+
def decide(self, reliability, risk):
3
+
if reliability > 0.8 and risk < 0.5:
4
+
return "comply"
5
+
if risk > 0.7:
6
+
return "refuse"
7
+
return "request_clarification"