File size: 273 Bytes
19b3da3
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
from typing import Any, Dict, List

from inference import model_fn, predict_fn


class EndpointHandler:
    def __init__(self, path=""):
        return model_fn(path)

    def __call__(self, data: Any) -> List[List[Dict[str, float]]]:
        return predict_fn(data, None)