From 21a5efd8aeda1c544dca37a206454ecd5782f8ff Mon Sep 17 00:00:00 2001 From: "lyuxiang.lx" Date: Sun, 29 Jun 2025 13:21:44 +0800 Subject: [PATCH] fix lint --- README.md | 2 +- cosyvoice/llm/llm.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2a2878a..43869fb 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ # pynini is required by WeTextProcessing, use conda to install it as it can be executed on all platforms. conda install -y -c conda-forge pynini==2.1.5 pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host=mirrors.aliyun.com - + # If you encounter sox compatibility issues # ubuntu sudo apt-get install sox libsox-dev diff --git a/cosyvoice/llm/llm.py b/cosyvoice/llm/llm.py index 243b888..e4d819d 100644 --- a/cosyvoice/llm/llm.py +++ b/cosyvoice/llm/llm.py @@ -381,7 +381,7 @@ class Qwen2LM(TransformerLM): self, batch: dict, device: torch.device, - ) -> Dict[str, Optional[torch.Tensor]]: + ) -> Dict[str, Optional[torch.Tensor]]: text_token = batch['text_token'].to(device) text_token_len = batch['text_token_len'].to(device) speech_token = batch['speech_token'].to(device)