Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
80073936
Commit
80073936
authored
Jun 16, 2022
by
patil-suraj
Browse files
wrap transformers import with try/catch
parent
cdf26c55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/diffusers/pipelines/grad_tts_utils.py
src/diffusers/pipelines/grad_tts_utils.py
+5
-1
No files found.
src/diffusers/pipelines/grad_tts_utils.py
View file @
80073936
...
...
@@ -5,7 +5,11 @@ import os
from
shutil
import
copyfile
import
torch
from
transformers
import
PreTrainedTokenizer
try
:
from
transformers
import
PreTrainedTokenizer
except
:
print
(
"transformers is not installed"
)
try
:
from
unidecode
import
unidecode
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment