Liyan06 commited on
Commit
19d69d5
·
1 Parent(s): 8c6cca8

inout format debug

Browse files
handler.py CHANGED
@@ -1,13 +1,11 @@
1
- from minicheck.minicheck import MiniCheck
2
 
3
  class EndpointHandler():
4
  def __init__(self, path="./"):
5
  self.scorer = MiniCheck(path=path)
6
 
7
  def __call__(self, data):
8
- docs = data.pop("docs",data)
9
- claims = data.pop("claims", None)
10
 
11
- _, raw_prob, _, _ = self.scorer.score(docs=docs, claims=claims)
12
-
13
  return raw_prob
 
1
+ from minicheck_web.minicheck import MiniCheck
2
 
3
  class EndpointHandler():
4
  def __init__(self, path="./"):
5
  self.scorer = MiniCheck(path=path)
6
 
7
  def __call__(self, data):
 
 
8
 
9
+ _, raw_prob, _, _ = self.scorer.score(inputs=data)
10
+
11
  return raw_prob
{minicheck → minicheck_web}/inference.py RENAMED
File without changes
{minicheck → minicheck_web}/minicheck.py RENAMED
File without changes