1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

Fix ftfy name error in Wan pipeline (#12314)

Signed-off-by: Daniel Socek <daniel.socek@intel.com>
Co-authored-by: YiYi Xu <yixu310@gmail.com>
This commit is contained in:
Daniel Socek
2026-01-09 16:02:40 -08:00
committed by GitHub
parent 1791306739
commit 2a6cdc0b3e

View File

@@ -76,7 +76,8 @@ EXAMPLE_DOC_STRING = """
def basic_clean(text):
text = ftfy.fix_text(text)
if is_ftfy_available():
text = ftfy.fix_text(text)
text = html.unescape(html.unescape(text))
return text.strip()