feat:将transcriber作为环境变量配置

This commit is contained in:
SurfRid3r
2025-04-19 23:13:49 +08:00
parent 2aad103a77
commit 0b7f6ca4ee
5 changed files with 21 additions and 10 deletions

View File

@@ -34,7 +34,7 @@ async def startup_event():
async def startup_event():
register_handler()
ensure_ffmpeg_or_raise()
get_transcriber()
get_transcriber(transcriber_type=os.getenv("TRANSCRIBER_TYPE","fast-whisper"))
init_video_task_table()
if __name__ == "__main__":