crevelop commited on
Commit
93d6419
·
unverified ·
1 Parent(s): 4da2996

Use Flux.1

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = "stabilityai/stable-diffusion-3.5-large" # Replace to the model you would like to use
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,
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: