Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ dtype = torch.float16
|
|
19 |
pipe = FLUXPipelineWithIntermediateOutputs.from_pretrained(
|
20 |
"black-forest-labs/FLUX.1-schnell", torch_dtype=dtype
|
21 |
).to("cuda")
|
22 |
-
pipe.vae = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=torch.float16)
|
23 |
torch.cuda.empty_cache()
|
24 |
|
25 |
# Inference function
|
|
|
19 |
pipe = FLUXPipelineWithIntermediateOutputs.from_pretrained(
|
20 |
"black-forest-labs/FLUX.1-schnell", torch_dtype=dtype
|
21 |
).to("cuda")
|
22 |
+
pipe.vae = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=torch.float16).to("cuda")
|
23 |
torch.cuda.empty_cache()
|
24 |
|
25 |
# Inference function
|