linoyts HF staff commited on
Commit
666c6de
1 Parent(s): f217e4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ from diffusers import StableDiffusionXLPipeline, EulerDiscreteScheduler
6
 
7
 
8
  flash_pipe = StableDiffusionXLPipeline.from_pretrained("sd-community/sdxl-flash").to("cuda", torch.float16)
9
- flash_pipe.scheduler = EulerDiscreteScheduler.from_config(pipe.scheduler.config)
10
  clip_slider = CLIPSliderXL(flash_pipe, device=torch.device("cuda"))
11
 
12
  @spaces.GPU
 
6
 
7
 
8
  flash_pipe = StableDiffusionXLPipeline.from_pretrained("sd-community/sdxl-flash").to("cuda", torch.float16)
9
+ flash_pipe.scheduler = EulerDiscreteScheduler.from_config(flash_pipe.scheduler.config)
10
  clip_slider = CLIPSliderXL(flash_pipe, device=torch.device("cuda"))
11
 
12
  @spaces.GPU