diff --git a/src/diffusers/modular_pipelines/hunyuan_video1_5/encoders.py b/src/diffusers/modular_pipelines/hunyuan_video1_5/encoders.py index 5419ca4861d5..f0628f0e916e 100644 --- a/src/diffusers/modular_pipelines/hunyuan_video1_5/encoders.py +++ b/src/diffusers/modular_pipelines/hunyuan_video1_5/encoders.py @@ -44,7 +44,7 @@ def format_text_input(prompt, system_message): def extract_glyph_texts(prompt): - pattern = r"\"(.*?)\"|\"(.*?)\"" + pattern = r"\"(.*?)\"|“(.*?)”" matches = re.findall(pattern, prompt) result = [match[0] or match[1] for match in matches] result = list(dict.fromkeys(result)) if len(result) > 1 else result