Spaces:
vilarin
/
Running on Zero

vilarin commited on
Commit
1462211
1 Parent(s): 4b64a91

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -42,11 +42,11 @@ def generate_image(prompt, ckpt="4-Step"):
42
  loaded = num_inference_steps
43
 
44
  if loaded == 1:
45
- results = pipe(prompt, num_inference_steps=num_inference_steps, guidance_scale=0, timesteps=[399])
46
  else:
47
- results = pipe(prompt, num_inference_steps=num_inference_steps, guidance_scale=0, timesteps=[999, 749, 499, 249])
48
-
49
 
 
50
  return results.images[0]
51
 
52
 
 
42
  loaded = num_inference_steps
43
 
44
  if loaded == 1:
45
+ timesteps=[399]
46
  else:
47
+ timesteps=[999, 749, 499, 249]
 
48
 
49
+ results = pipe(prompt, num_inference_steps=num_inference_steps, guidance_scale=0, timesteps=timesteps)
50
  return results.images[0]
51
 
52