nirajandhakal commited on
Commit
a1097a0
·
verified ·
1 Parent(s): 86dc630

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ pipe = DiffusionPipeline.from_pretrained(
24
  def generate_image(prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps, progress=gr.Progress(track_tqdm=True)):
25
  if randomize_seed:
26
  seed = random.randint(0, MAX_SEED)
27
- generator = torch.Generator().manual_seed(seed)
28
  image = pipe(
29
  prompt=prompt,
30
  width=width,
 
24
  def generate_image(prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps, progress=gr.Progress(track_tqdm=True)):
25
  if randomize_seed:
26
  seed = random.randint(0, MAX_SEED)
27
+ generator = torch.Generator().manual_seed(42)
28
  image = pipe(
29
  prompt=prompt,
30
  width=width,