Spaces:
Sleeping
Sleeping
Use Flux.1
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ from diffusers import DiffusionPipeline
|
|
9 |
import torch
|
10 |
|
11 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
12 |
-
model_repo_id = "
|
13 |
|
14 |
if torch.cuda.is_available():
|
15 |
torch_dtype = torch.float16
|
@@ -36,7 +36,7 @@ def infer(
|
|
36 |
width=1024,
|
37 |
height=1024,
|
38 |
guidance_scale=4.5,
|
39 |
-
num_inference_steps=
|
40 |
progress=gr.Progress(track_tqdm=True),
|
41 |
):
|
42 |
if randomize_seed:
|
|
|
9 |
import torch
|
10 |
|
11 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
12 |
+
model_repo_id = "black-forest-labs/FLUX.1-schnell" # Replace to the model you would like to use
|
13 |
|
14 |
if torch.cuda.is_available():
|
15 |
torch_dtype = torch.float16
|
|
|
36 |
width=1024,
|
37 |
height=1024,
|
38 |
guidance_scale=4.5,
|
39 |
+
num_inference_steps=4,
|
40 |
progress=gr.Progress(track_tqdm=True),
|
41 |
):
|
42 |
if randomize_seed:
|