mirror of
https://github.com/BoardWare-Genius/jarvis-models.git
synced 2025-12-13 16:53:24 +00:00
Update blackbox_factory.py
This commit is contained in:
@ -3,6 +3,7 @@ from .sentiment import Sentiment
|
||||
from .tts import TTS
|
||||
from .asr import ASR
|
||||
from .audio_to_text import AudioToText
|
||||
from .emotion import Emotion
|
||||
from .blackbox import Blackbox
|
||||
from .text_to_audio import TextToAudio
|
||||
from .tesou import Tesou
|
||||
@ -26,6 +27,7 @@ class BlackboxFactory:
|
||||
asr: ASR,
|
||||
tts: TTS,
|
||||
sentiment_engine: Sentiment,
|
||||
emotion: Emotion,
|
||||
tesou: Tesou,
|
||||
fastchat: Fastchat,
|
||||
audio_chat: AudioChat,
|
||||
@ -41,6 +43,7 @@ class BlackboxFactory:
|
||||
self.models["tts"] = tts
|
||||
self.models["sentiment_engine"] = sentiment_engine
|
||||
self.models["tesou"] = tesou
|
||||
self.models["emotion"] = emotion
|
||||
self.models["fastchat"] = fastchat
|
||||
self.models["audio_chat"] = audio_chat
|
||||
self.models["g2e"] = g2e
|
||||
@ -57,4 +60,4 @@ class BlackboxFactory:
|
||||
model = self.models.get(blackbox_name)
|
||||
if model is None:
|
||||
raise ValueError("Invalid blockbox type")
|
||||
return model
|
||||
return model
|
||||
|
||||
Reference in New Issue
Block a user