File size: 277 Bytes
19d69d5
3201a95
 
 
 
 
 
 
19d69d5
 
3201a95
1
2
3
4
5
6
7
8
9
10
11
from minicheck_web.minicheck import MiniCheck

class EndpointHandler():
    def __init__(self, path="./"):
        self.scorer = MiniCheck(path=path)

    def __call__(self, data):

        _, raw_prob, _, _ = self.scorer.score(inputs=data)
            
        return raw_prob