fix: use get_running_loop() instead of deprecated get_event_loop()
This commit is contained in:
+1
-1
@@ -46,7 +46,7 @@ class TranscriptionEngine:
|
||||
async def _transcribe_local(
|
||||
self, audio_path: str, language: str, model_name: str, device: str
|
||||
) -> str:
|
||||
loop = asyncio.get_event_loop()
|
||||
loop = asyncio.get_running_loop()
|
||||
model = self._get_model(model_name, device)
|
||||
segments, _ = await loop.run_in_executor(
|
||||
None,
|
||||
|
||||
Reference in New Issue
Block a user