server: implement warmup event for llm and transcription

This commit is contained in:
Mathieu Virbel
2023-08-11 15:32:41 +02:00
parent a2518df3bd
commit 38a5ee0da2
8 changed files with 85 additions and 5 deletions

View File

@@ -47,6 +47,9 @@ class AudioTranscriptAutoProcessor(AudioTranscriptProcessor):
def off(self, callback):
self.processor.off(callback)
async def _warmup(self):
return await self.processor._warmup()
async def _push(self, data: AudioFile):
return await self.processor._push(data)