Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -18,8 +18,6 @@ from diffusers.pipelines.flux import FluxPipeline
|
|
18 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
19 |
dtype = torch.float16
|
20 |
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=dtype, token=os.getenv("hf_token")).to(device)
|
21 |
-
pipe.enable_vae_slicing()
|
22 |
-
pipe.enable_vae_tiling()
|
23 |
|
24 |
def translate(text,lang):
|
25 |
|
|
|
18 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
19 |
dtype = torch.float16
|
20 |
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=dtype, token=os.getenv("hf_token")).to(device)
|
|
|
|
|
21 |
|
22 |
def translate(text,lang):
|
23 |
|