Skip to content

Commit 2a6cdc0

Browse files
dsocekyiyixuxu
andauthored
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>
1 parent 1791306 commit 2a6cdc0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/diffusers/pipelines/wan/pipeline_wan.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@
7676

7777

7878
def basic_clean(text):
79-
text = ftfy.fix_text(text)
79+
if is_ftfy_available():
80+
text = ftfy.fix_text(text)
8081
text = html.unescape(html.unescape(text))
8182
return text.strip()
8283

0 commit comments

Comments
 (0)