mirror of
https://github.com/BoardWare-Genius/jarvis-models.git
synced 2025-12-14 00:53:25 +00:00
temp
This commit is contained in:
@ -12,18 +12,19 @@ class BlackboxFactory:
|
||||
|
||||
def __init__(self) -> None:
|
||||
self.tts = TTS()
|
||||
self.asr = ASR("./.env.yaml")
|
||||
self.sentiment = Sentiment()
|
||||
self.sum = SUM()
|
||||
self.calculator = Calculator()
|
||||
self.audio_to_text = AudioToText()
|
||||
self.text_to_audio = TextToAudio()
|
||||
self.tesou = Tesou()
|
||||
#self.asr = ASR("./.env.yaml")
|
||||
#self.sentiment = Sentiment()
|
||||
#self.sum = SUM()
|
||||
#self.calculator = Calculator()
|
||||
#self.audio_to_text = AudioToText()
|
||||
#self.text_to_audio = TextToAudio()
|
||||
#self.tesou = Tesou()
|
||||
|
||||
def __call__(self, *args, **kwargs):
|
||||
return self.processing(*args, **kwargs)
|
||||
|
||||
def create_blackbox(self, blackbox_name: str) -> Blackbox:
|
||||
return self.tts
|
||||
if blackbox_name == "audio_to_text":
|
||||
return self.audio_to_text
|
||||
if blackbox_name == "text_to_audio":
|
||||
|
||||
Reference in New Issue
Block a user