amazonaws-la commited on
Commit
103cb4b
·
verified ·
1 Parent(s): 75bfe2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -62,13 +62,13 @@ def generate(
62
 
63
  if not use_vae:
64
  pipe = DiffusionPipeline.from_pretrained(model, torch_dtype=torch.float16)
65
- sampler_class = getattr(spaces, sampler)
66
  pipe.scheduler = sampler_class.from_config(pipe.scheduler.config)
67
 
68
  if use_vae:
69
  vae = AutoencoderKL.from_pretrained(vaecall, torch_dtype=torch.float16)
70
  pipe = DiffusionPipeline.from_pretrained(model, vae=vae, torch_dtype=torch.float16)
71
- sampler_class = getattr(spaces, sampler)
72
  pipe.scheduler = sampler_class.from_config(pipe.scheduler.config)
73
 
74
  if use_lora:
 
62
 
63
  if not use_vae:
64
  pipe = DiffusionPipeline.from_pretrained(model, torch_dtype=torch.float16)
65
+ sampler_class = sampler
66
  pipe.scheduler = sampler_class.from_config(pipe.scheduler.config)
67
 
68
  if use_vae:
69
  vae = AutoencoderKL.from_pretrained(vaecall, torch_dtype=torch.float16)
70
  pipe = DiffusionPipeline.from_pretrained(model, vae=vae, torch_dtype=torch.float16)
71
+ sampler_class = sampler
72
  pipe.scheduler = sampler_class.from_config(pipe.scheduler.config)
73
 
74
  if use_lora: