Spaces:
Runtime error
Runtime error
Update app.py
Browse filesFixed if the upscaling is off but refining is on error
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=
|
| 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:
|