mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
Fix incorrect assignment of 'end' attribute to 'start' in sentences list comprehension (#1680)
This commit is contained in:
parent
7555b7776f
commit
d50edc297a
@ -117,7 +117,7 @@ async def api_recognition(audio: UploadFile = File(..., description="audio file"
|
||||
for sentence in rec_result["sentence_info"]:
|
||||
# 每句话的时间戳
|
||||
sentences.append(
|
||||
{"text": sentence["text"], "start": sentence["start"], "end": sentence["start"]}
|
||||
{"text": sentence["text"], "start": sentence["start"], "end": sentence["end"]}
|
||||
)
|
||||
ret = {"text": text, "sentences": sentences, "code": 0}
|
||||
logger.info(f"识别结果:{ret}")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user