Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import spaces
|
|
| 4 |
import torch
|
| 5 |
from diffusers import FluxPipeline
|
| 6 |
|
| 7 |
-
pipeline = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.
|
| 8 |
#pipeline.enable_model_cpu_offload()
|
| 9 |
|
| 10 |
@spaces.GPU(duration=190)
|
|
|
|
| 4 |
import torch
|
| 5 |
from diffusers import FluxPipeline
|
| 6 |
|
| 7 |
+
pipeline = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.float16).to("cuda")
|
| 8 |
#pipeline.enable_model_cpu_offload()
|
| 9 |
|
| 10 |
@spaces.GPU(duration=190)
|