Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -54,6 +54,10 @@ def infer(
|
|
54 |
width = max(256, (width // 8) * 8)
|
55 |
height = max(256, (height // 8) * 8)
|
56 |
|
|
|
|
|
|
|
|
|
57 |
generator = torch.Generator().manual_seed(seed)
|
58 |
|
59 |
image = pipe(
|
|
|
54 |
width = max(256, (width // 8) * 8)
|
55 |
height = max(256, (height // 8) * 8)
|
56 |
|
57 |
+
# Set default value if num_inference_steps is None
|
58 |
+
if num_inference_steps is None:
|
59 |
+
num_inference_steps = 20
|
60 |
+
|
61 |
generator = torch.Generator().manual_seed(seed)
|
62 |
|
63 |
image = pipe(
|