Manjushri commited on
Commit
ed90ec2
1 Parent(s): e884c72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -84,8 +84,8 @@ def genie (Model, Prompt, negative_prompt, height, width, scale, steps, seed, up
84
  semi.enable_xformers_memory_efficient_attention()
85
  torch.cuda.empty_cache()
86
  if upscale == "Yes":
87
- int_image = semi(Prompt, negative_prompt=negative_prompt, height=height, width=width, num_inference_steps=steps, guidance_scale=scale, output_type="latent").images
88
- image = refiner(Prompt, negative_prompt=negative_prompt, image=int_image, denoising_start=high_noise_frac).images[0]
89
  torch.cuda.empty_cache()
90
  return image
91
  else:
 
84
  semi.enable_xformers_memory_efficient_attention()
85
  torch.cuda.empty_cache()
86
  if upscale == "Yes":
87
+ image = semi(Prompt, negative_prompt=negative_prompt, height=height, width=width, num_inference_steps=steps, guidance_scale=scale, output_type="latent").images
88
+ image = refiner(Prompt, negative_prompt=negative_prompt, image=image, denoising_start=high_noise_frac).images[0]
89
  torch.cuda.empty_cache()
90
  return image
91
  else: