[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
3b60d40f92
commit
91e3a281d8
1 changed files with 1 additions and 0 deletions
|
|
@ -808,6 +808,7 @@ class DiffusionBackend:
|
|||
# execution) so test environments that stub these modules
|
||||
# still pass the preflight without us actually importing them.
|
||||
import importlib.util as _ilu
|
||||
|
||||
for _mod in ("transformers", "accelerate"):
|
||||
if _ilu.find_spec(_mod) is None:
|
||||
raise RuntimeError(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue