Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,8 @@ import torch
|
|
3 |
from diffusers import FluxPipeline, FluxTransformer2DModel, GGUFQuantizationConfig
|
4 |
|
5 |
ckpt_path = (
|
6 |
-
"https://huggingface.co/city96/FLUX.1-
|
|
|
7 |
)
|
8 |
transformer = FluxTransformer2DModel.from_single_file(
|
9 |
ckpt_path,
|
@@ -11,7 +12,7 @@ transformer = FluxTransformer2DModel.from_single_file(
|
|
11 |
torch_dtype=torch.bfloat16,
|
12 |
)
|
13 |
pipe = FluxPipeline.from_pretrained(
|
14 |
-
"black-forest-labs/FLUX.1-
|
15 |
transformer=transformer,
|
16 |
torch_dtype=torch.bfloat16,
|
17 |
)
|
|
|
3 |
from diffusers import FluxPipeline, FluxTransformer2DModel, GGUFQuantizationConfig
|
4 |
|
5 |
ckpt_path = (
|
6 |
+
"https://huggingface.co/city96/FLUX.1-schnell-gguf/blob/main/flux1-schnell-Q2_K.gguf"
|
7 |
+
# "https://huggingface.co/city96/FLUX.1-dev-gguf/blob/main/flux1-dev-Q2_K.gguf"
|
8 |
)
|
9 |
transformer = FluxTransformer2DModel.from_single_file(
|
10 |
ckpt_path,
|
|
|
12 |
torch_dtype=torch.bfloat16,
|
13 |
)
|
14 |
pipe = FluxPipeline.from_pretrained(
|
15 |
+
"black-forest-labs/FLUX.1-schnell",
|
16 |
transformer=transformer,
|
17 |
torch_dtype=torch.bfloat16,
|
18 |
)
|