Spaces:
vilarin
/
Running on Zero

vilarin commited on
Commit
fee8445
1 Parent(s): 1e00cbb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -41,8 +41,9 @@ def generate_image(prompt, ckpt):
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
 
48
  return results.images[0]
 
41
  loaded = num_inference_steps
42
 
43
  if num_inference_steps == 1:
44
+ results = pipe(prompt, num_inference_steps=num_inference_steps, guidance_scale=0, timesteps=[399])
45
+ else:
46
+ results = pipe(prompt, num_inference_steps=num_inference_steps, guidance_scale=0)
47
 
48
 
49
  return results.images[0]