按步骤在 whisperx-api 目录下(激活虚拟环境或用 uv):
uv pip uninstall torch
uv pip install torch==2.8.0 --index-url “双引号里这段是网址链接,不改发不了提问"
然后
D:\tools\whisperx-api>set WHISPERX_DEVICE=cuda
D:\tools\whisperx-api>uv run app.py
D:\tools\whisperx-api.venv\Lib\site-packages\pyannote\audio\core\io.py:212: UserWarning: torchaudio._backend.list_audio_backends has been deprecated. This deprecation is part of a large refactoring effort to transition TorchAudio into a maintenance phase. The decoding and encoding capabilities of PyTorch for both audio and video are being consolidated into TorchCodec. Please see https://github.com/pytorch/audio/issues/3902 for more information. It will be removed from the 2.9 release.
torchaudio.list_audio_backends()
2026-05-08 18:31:58,582 - INFO - 成功从 token.txt 文件中读取 Hugging Face 令牌。
2026-05-08 18:31:58,582 - INFO - 使用设备: cpu,计算类型: int8
2026-05-08 18:31:58,582 - INFO - FFmpeg 环境检查通过。
2026-05-08 18:31:58,582 - INFO - 服务已启动,正在监听 http://127.0.0.1:9092
2026-05-08 18:31:58,582 - INFO - Serving on http://127.0.0.1:9092
还是cpu模式