amazonaws-la commited on
Commit
b04a0da
·
verified ·
1 Parent(s): 0382e35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -59,8 +59,8 @@ def generate(
59
  if torch.cuda.is_available():
60
 
61
  if not use_vae:
62
- pipe = DiffusionPipeline.from_pretrained(model, torch_dtype=torch.float16)
63
- pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
64
 
65
  if use_vae:
66
  vae = AutoencoderKL.from_pretrained(vaecall, torch_dtype=torch.float16)
 
59
  if torch.cuda.is_available():
60
 
61
  if not use_vae:
62
+ pipe = DiffusionPipeline.from_pretrained(model, torch_dtype=torch.float16)
63
+ pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
64
 
65
  if use_vae:
66
  vae = AutoencoderKL.from_pretrained(vaecall, torch_dtype=torch.float16)