mirror of
https://github.com/OpenBMB/VoxCPM
synced 2025-12-12 03:48:12 +00:00
remove \n from input text
This commit is contained in:
@@ -130,6 +130,7 @@ class VoxCPM:
|
||||
if (prompt_wav_path is None) != (prompt_text is None):
|
||||
raise ValueError("prompt_wav_path and prompt_text must both be provided or both be None")
|
||||
|
||||
text = text.replace("\n", " ")
|
||||
temp_prompt_wav_path = None
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user