Spaces:
Sleeping
Sleeping
from typing import List, Any | |
from pydantic_settings import BaseSettings | |
from obsei.payload import TextPayload | |
from abc import abstractmethod | |
class BasePostprocessorConfig(BaseSettings): | |
TYPE: str = "Base" | |
class Config: | |
multi_label = True | |
class BasePostprocessor(BaseSettings): | |
TYPE: str = "Base" | |
def postprocess_input( | |
self, input_list: List[TextPayload], config: BasePostprocessorConfig, **kwargs: Any | |
) -> List[TextPayload]: | |
pass | |
class Config: | |
arbitrary_types_allowed = True | |