Manjushri commited on
Commit
098f9f6
·
verified ·
1 Parent(s): 50caa1d

Update app.py

Browse files

Fixed if the upscaling is off but refining is on error

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -44,7 +44,7 @@ def genie (prompt, negative_prompt, height, width, scale, steps, seed, upscaling
44
  torch.cuda.empty_cache()
45
  return upscaled
46
  else:
47
- image = refiner(prompt=prompt, prompt_2=prompt_2, negative_prompt=negative_prompt, negative_prompt_2=negative_prompt_2, image=image, num_inference_steps=n_steps ,denoising_start=high_noise_frac).images[0]
48
  torch.cuda.empty_cache()
49
  return image
50
  else:
 
44
  torch.cuda.empty_cache()
45
  return upscaled
46
  else:
47
+ image = refiner(prompt=prompt, prompt_2=prompt_2, negative_prompt=negative_prompt, negative_prompt_2=negative_prompt_2, image=int_image, num_inference_steps=n_steps ,denoising_start=high_noise_frac).images[0]
48
  torch.cuda.empty_cache()
49
  return image
50
  else: