Manjushri commited on
Commit
4f26878
1 Parent(s): 91ec6fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -314,7 +314,7 @@ def genie (Model, Prompt, negative_prompt, height, width, scale, steps, seed, re
314
  pipe.enable_xformers_memory_efficient_attention()
315
  pipe = pipe.to(device)
316
  torch.cuda.empty_cache()
317
- image = refiner(Prompt, negative_prompt=negative_prompt, image=int_image, denoising_start=high_noise_frac).images[0]
318
  torch.cuda.empty_cache()
319
  if upscale == "Yes":
320
  refiner = DiffusionPipeline.from_pretrained("stabilityai/sd-x2-latent-upscaler", torch_dtype=torch.float16, use_safetensors=True)
 
314
  pipe.enable_xformers_memory_efficient_attention()
315
  pipe = pipe.to(device)
316
  torch.cuda.empty_cache()
317
+ image = pipe(Prompt, negative_prompt=negative_prompt, image=int_image, denoising_start=high_noise_frac).images[0]
318
  torch.cuda.empty_cache()
319
  if upscale == "Yes":
320
  refiner = DiffusionPipeline.from_pretrained("stabilityai/sd-x2-latent-upscaler", torch_dtype=torch.float16, use_safetensors=True)