vilarin commited on
Commit
1e00cbb
1 Parent(s): 3819ced

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -40,7 +40,8 @@ def generate_image(prompt, ckpt):
40
  pipe.unet.load_state_dict(torch.load(hf_hub_download(repo, checkpoint), map_location="cuda"))
41
  loaded = num_inference_steps
42
 
43
- timesteps = [399] if num_inference_steps == 1 else []
 
44
  results = pipe(prompt, num_inference_steps=num_inference_steps, guidance_scale=0, timesteps=timesteps)
45
 
46
 
 
40
  pipe.unet.load_state_dict(torch.load(hf_hub_download(repo, checkpoint), map_location="cuda"))
41
  loaded = num_inference_steps
42
 
43
+ if num_inference_steps == 1:
44
+ timesteps = [399]
45
  results = pipe(prompt, num_inference_steps=num_inference_steps, guidance_scale=0, timesteps=timesteps)
46
 
47