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 |
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 |