Update app.py
Browse files
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 |
-
|
45 |
-
|
|
|
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]
|