multimodalart HF staff commited on
Commit
7002525
1 Parent(s): 9c8feab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -52,6 +52,7 @@ def infer(prompt, negative_prompt="", seed=42, randomize_seed=False, width=1024,
52
  num_inference_steps = num_inference_steps,
53
  generator = generator
54
  ).images[0]
 
55
  image_2 = image = pipe(
56
  prompt = prompt,
57
  negative_prompt = negative_prompt,
 
52
  num_inference_steps = num_inference_steps,
53
  generator = generator
54
  ).images[0]
55
+ generator = torch.Generator().manual_seed(seed)
56
  image_2 = image = pipe(
57
  prompt = prompt,
58
  negative_prompt = negative_prompt,