trashchenkov commited on
Commit
b9f1f79
·
verified ·
1 Parent(s): acd8555

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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(