Manjushri commited on
Commit
1176ecd
1 Parent(s): 2ebb75e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ torch.cuda.empty_cache()
27
  def genie (prompt, negative_prompt, scale, steps, seed):
28
  torch.cuda.empty_cache()
29
  generator = torch.Generator(device=device).manual_seed(seed)
30
- int_image = pipe(prompt, negative_prompt=negative_prompt, num_inference_steps=steps, guidance_scale=scale, num_images_per_prompt=1, generator=generator, width=767, height=768, output_type="latent").images
31
  torch.cuda.empty_cache()
32
  image = refiner(prompt=prompt, image=int_image).images[0]
33
  return image
 
27
  def genie (prompt, negative_prompt, scale, steps, seed):
28
  torch.cuda.empty_cache()
29
  generator = torch.Generator(device=device).manual_seed(seed)
30
+ int_image = pipe(prompt, negative_prompt=negative_prompt, num_inference_steps=steps, guidance_scale=scale, num_images_per_prompt=1, generator=generator, width=768, height=768, output_type="latent").images
31
  torch.cuda.empty_cache()
32
  image = refiner(prompt=prompt, image=int_image).images[0]
33
  return image