mirror of
https://github.com/BoardWare-Genius/jarvis-models.git
synced 2025-12-14 00:53:25 +00:00
feat: log
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import logging
|
||||
from fastapi import Request, Response,status
|
||||
from fastapi.responses import JSONResponse
|
||||
from injector import inject, singleton
|
||||
@ -8,11 +9,14 @@ from .tts import TTS
|
||||
|
||||
from .blackbox import Blackbox
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@singleton
|
||||
class AudioChat(Blackbox):
|
||||
|
||||
@inject
|
||||
def __init__(self, asr: ASR, gpt: Tesou, tts: TTS):
|
||||
logger.info("audio chat initint")
|
||||
self.asr = asr
|
||||
self.gpt = gpt
|
||||
self.tts = tts
|
||||
|
||||
Reference in New Issue
Block a user