Skip to content

Commit 2e559dc

Browse files
authored
fix circle ref (#884)
Co-authored-by: baishihao <[email protected]>
1 parent f25d1fe commit 2e559dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lightllm/server/multimodal_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from fastapi import Request
99
from lightllm.utils.multimodal_utils import fetch_resource
1010
from lightllm.utils.log_utils import init_logger
11-
from lightllm.models.whisper.defaults import MIN_AUDIO_LEN
1211

1312
logger = init_logger(__name__)
1413

@@ -42,6 +41,7 @@ async def preload(self, request: Request):
4241

4342
# check if valid audio bytes
4443
audio_values, _ = librosa.load(BytesIO(audio_data), sr=16000)
44+
from lightllm.models.whisper.defaults import MIN_AUDIO_LEN
4545

4646
self.audio_length = max(audio_values.shape[0], MIN_AUDIO_LEN) # 如果音频过短,会被pad到480的长度
4747
self._preload_data = audio_data

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ torchvision==0.21.0
6565
tqdm==4.65.0
6666
transformers==4.51.2
6767
tokenizers==0.21.0
68-
triton==3.1.0
68+
triton==3.2.0
6969
urllib3==1.26.16
7070
uvicorn==0.19.0
7171
uvloop==0.17.0

0 commit comments

Comments
 (0)