mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +00:00
fix: move pydub import to avoid warnings
This commit is contained in:
parent
ab786279e6
commit
3edcd71a44
1 changed files with 2 additions and 1 deletions
|
@ -6,7 +6,6 @@ import time
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
from prompt_toolkit.shortcuts import prompt
|
from prompt_toolkit.shortcuts import prompt
|
||||||
from pydub import AudioSegment
|
|
||||||
|
|
||||||
from aider.llm import litellm
|
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"
|
"ignore", message="Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
from pydub import AudioSegment # noqa
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import soundfile as sf
|
import soundfile as sf
|
||||||
except (OSError, ModuleNotFoundError):
|
except (OSError, ModuleNotFoundError):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue