Files
DPM/backend/vendor/s2s-cloud/tests/test_llm_utils.py
T
Pine 7f25c8f6bb refactor(backend): 启动环境初始化与资源项目化(零跨项目依赖)
- main.py:uv run main.py 一键启动——读取 backend/.env、TORCH_HOME/NLTK_DATA 指向项目内缓存、certifi SSL + NO_PROXY 网络直连、默认开启 s2s,启动横幅
- vendor/:补丁后 s2s 云化栈移入项目(backend/vendor/s2s-cloud),pyproject sources 改相对路径
- .gitignore:忽略 .torch-cache / nltk_data 缓存
- AGENTS.md:进程管理铁律(AI 不启动/重启服务,由用户操作)
2026-08-18 01:37:57 +08:00

10 lines
383 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
from speech_to_speech.LLM.utils import remove_unspeechable
def test_remove_unspeechable_normalizes_smart_apostrophes() -> None:
assert remove_unspeechable("Ill reply if heres the plan.") == "I'll reply if here's the plan."
def test_remove_unspeechable_keeps_text_and_drops_emoji() -> None:
assert remove_unspeechable("Hello 👋 lobster 🦞") == "Hello lobster "