Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -46,8 +46,7 @@ def genie (prompt, negative_prompt, height, width, scale, steps, seed, upscaling
|
|
46 |
torch.cuda.empty_cache()
|
47 |
return (image, upscaled)
|
48 |
else:
|
49 |
-
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,
|
50 |
-
denoising_start=high_noise_frac).images[0]
|
51 |
torch.cuda.empty_cache()
|
52 |
return (image, image)
|
53 |
|
|
|
46 |
torch.cuda.empty_cache()
|
47 |
return (image, upscaled)
|
48 |
else:
|
49 |
+
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]
|
|
|
50 |
torch.cuda.empty_cache()
|
51 |
return (image, image)
|
52 |
|