mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-10-03 09:05:17 -07:00
chore(backend): sort imports in cherry-picked transcription fix
This commit is contained in:
@@ -37,8 +37,8 @@ async def transcribe_audio(
|
|||||||
|
|
||||||
stt_path = tmp_path
|
stt_path = tmp_path
|
||||||
try:
|
try:
|
||||||
from ..utils.audio import load_audio, save_audio
|
|
||||||
from ..backends import WHISPER_HF_REPOS
|
from ..backends import WHISPER_HF_REPOS
|
||||||
|
from ..utils.audio import load_audio, save_audio
|
||||||
|
|
||||||
audio, sr = await asyncio.to_thread(load_audio, tmp_path)
|
audio, sr = await asyncio.to_thread(load_audio, tmp_path)
|
||||||
duration = len(audio) / sr
|
duration = len(audio) / sr
|
||||||
|
|||||||
Reference in New Issue
Block a user