mirror of
https://github.com/BoardWare-Genius/jarvis-models.git
synced 2025-12-13 16:53:24 +00:00
feat: calculator;
This commit is contained in:
@ -7,7 +7,6 @@ from blackbox.text_to_audio import TextToAudio
|
||||
class BlackboxFactory:
|
||||
|
||||
def create_blackbox(self, blackbox_type: str, blackbox_config: dict) -> Blackbox:
|
||||
|
||||
if blackbox_type == "audio_to_text":
|
||||
return AudioToText(blackbox_config)
|
||||
if blackbox_type == "text_to_audio":
|
||||
|
||||
@ -5,6 +5,7 @@ from gtts import gTTS
|
||||
from io import BytesIO
|
||||
|
||||
class TextToAudio(Blackbox):
|
||||
|
||||
def valid(self, data: any) -> bool:
|
||||
return isinstance(data, str)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user