Spaces:
Build error
Build error
from abc import ABC, abstractmethod | |
class DeploymentStrategy(ABC): | |
def deploy(self, model, endpoint_name: str, endpoint_config_name: str) -> None: | |
pass | |
class Inference(ABC): | |
"""An abstract class for performing inference.""" | |
def __init__(self): | |
self.model = None | |
def set_payload(self, inputs, parameters=None): | |
pass | |
def set_payload(self, query, context, parameters=None): | |
pass | |
def inference(self): | |
pass | |