mirror of
https://github.com/BoardWare-Genius/jarvis-models.git
synced 2025-12-14 17:13:25 +00:00
feat
This commit is contained in:
@ -1,18 +1,21 @@
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
from fastapi import Request, Response
|
||||
|
||||
|
||||
class Blackbox(ABC):
|
||||
|
||||
def __init__(self, config: any) -> None:
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def processing(self, data: any):
|
||||
pass
|
||||
|
||||
|
||||
@abstractmethod
|
||||
def valid(self, data: any) -> bool:
|
||||
pass
|
||||
|
||||
class TextToAudio(Blackbox):
|
||||
|
||||
def processing(self, data: any):
|
||||
print("TextToAudio processing")
|
||||
|
||||
|
||||
@abstractmethod
|
||||
def fast_api_handler(self, request: Request) -> Response:
|
||||
pass
|
||||
Reference in New Issue
Block a user