KingNish commited on
Commit
21e68e9
1 Parent(s): 806b606

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,7 +5,7 @@ import spaces
5
  import torch
6
  import time
7
  from diffusers import DiffusionPipeline, AutoencoderTiny
8
- from custom_pipeline import FLUXPipelineWithIntermediateOutputs
9
 
10
  # Constants
11
  MAX_SEED = np.iinfo(np.int32).max
@@ -16,7 +16,7 @@ DEFAULT_INFERENCE_STEPS = 1
16
 
17
  # Device and model setup
18
  dtype = torch.float16
19
- pipe = FLUXPipelineWithIntermediateOutputs.from_pretrained(
20
  "ostris/OpenFLUX.1", torch_dtype=dtype
21
  )
22
  pipe.vae = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=torch.float16)
 
5
  import torch
6
  import time
7
  from diffusers import DiffusionPipeline, AutoencoderTiny
8
+ from custom_pipeline import FluxWithCFGPipeline
9
 
10
  # Constants
11
  MAX_SEED = np.iinfo(np.int32).max
 
16
 
17
  # Device and model setup
18
  dtype = torch.float16
19
+ pipe = FluxWithCFGPipeline.from_pretrained(
20
  "ostris/OpenFLUX.1", torch_dtype=dtype
21
  )
22
  pipe.vae = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=torch.float16)