Manjushri commited on
Commit
50caa1d
·
verified ·
1 Parent(s): 2e6f372

Update app.py

Browse files

Whoa, I forgot a bit of stuff... Should be fixed

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ def genie (prompt, negative_prompt, height, width, scale, steps, seed, upscaling
49
  return image
50
  else:
51
  if upscaling == 'Yes':
52
- image = pipe(prompt=prompt, prompt_2=prompt_2, negative_prompt=negative_prompt, negative_prompt_2=negative_prompt_2, num_inference_steps=steps).images[0]
53
  upscaled = upscaler(prompt=prompt, negative_prompt=negative_prompt, image=image, num_inference_steps=15, guidance_scale=0).images[0]
54
  torch.cuda.empty_cache()
55
  return upscaled
 
49
  return image
50
  else:
51
  if upscaling == 'Yes':
52
+ image = pipe(prompt=prompt, prompt_2=prompt_2, negative_prompt=negative_prompt, negative_prompt_2=negative_prompt_2, num_inference_steps=steps, height=height, width=width, guidance_scale=scale, num_images_per_prompt=1, generator=generator).images[0]
53
  upscaled = upscaler(prompt=prompt, negative_prompt=negative_prompt, image=image, num_inference_steps=15, guidance_scale=0).images[0]
54
  torch.cuda.empty_cache()
55
  return upscaled