Skip to content

Commit 7c244d0

Browse files
committed
Fix ftfy name error in Wan pipeline
Signed-off-by: Daniel Socek <[email protected]>
1 parent eb7ef26 commit 7c244d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)