heartread-ecg / handler.py
Sheape's picture
ci: add custom initial handler
8547507
raw
history blame contribute delete
300 Bytes
from typing import Dict, List, Any
from keras.models import load_model
class EndpointHandler():
def __init__(self, path="sepres-20-epoch-sigmoid.h5"):
self.model = load_model(path)
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
return {'output': 'test'}