Spaces:
Running
on
Zero
Running
on
Zero
AlekseyCalvin
commited on
Commit
•
2c4abd3
1
Parent(s):
57fd1e7
Update pipeline.py
Browse files- pipeline.py +0 -8
pipeline.py
CHANGED
@@ -14,8 +14,6 @@ from diffusers.utils import (
|
|
14 |
is_torch_xla_available,
|
15 |
logging,
|
16 |
BACKENDS_MAPPING,
|
17 |
-
is_bs4_available,
|
18 |
-
is_ftfy_available,
|
19 |
deprecate,
|
20 |
replace_example_docstring,
|
21 |
scale_lora_layers,
|
@@ -28,12 +26,6 @@ from PIL import Image
|
|
28 |
from diffusers.pipelines.flux.pipeline_flux import calculate_shift, retrieve_timesteps, FluxTransformer2DModel
|
29 |
from diffusers.utils import is_torch_xla_available
|
30 |
|
31 |
-
if is_bs4_available():
|
32 |
-
from bs4 import BeautifulSoup
|
33 |
-
|
34 |
-
if is_ftfy_available():
|
35 |
-
import ftfy
|
36 |
-
|
37 |
if is_torch_xla_available():
|
38 |
import torch_xla.core.xla_model as xm
|
39 |
|
|
|
14 |
is_torch_xla_available,
|
15 |
logging,
|
16 |
BACKENDS_MAPPING,
|
|
|
|
|
17 |
deprecate,
|
18 |
replace_example_docstring,
|
19 |
scale_lora_layers,
|
|
|
26 |
from diffusers.pipelines.flux.pipeline_flux import calculate_shift, retrieve_timesteps, FluxTransformer2DModel
|
27 |
from diffusers.utils import is_torch_xla_available
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
if is_torch_xla_available():
|
30 |
import torch_xla.core.xla_model as xm
|
31 |
|