fix: move pydub import to avoid warnings

This commit is contained in:
Paul Gauthier 2024-09-24 09:29:00 -07:00 committed by Paul Gauthier (aider)
parent ab786279e6
commit 3edcd71a44

View file

@ -6,7 +6,6 @@ import time
import warnings
from prompt_toolkit.shortcuts import prompt
from pydub import AudioSegment
from aider.llm import litellm
@ -16,6 +15,8 @@ warnings.filterwarnings(
"ignore", message="Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work"
)
from pydub import AudioSegment # noqa
try:
import soundfile as sf
except (OSError, ModuleNotFoundError):