Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ from PIL import Image, ImageOps
|
|
| 7 |
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
|
| 8 |
pipeline = AutoPipelineForInpainting.from_pretrained("diffusers/stable-diffusion-xl-1.0-inpainting-0.1", vae=vae, torch_dtype=torch.float16, variant="fp16", use_safetensors=True).to("cuda")
|
| 9 |
|
| 10 |
-
|
| 11 |
def get_select_index(evt: gr.SelectData):
|
| 12 |
print(evt)
|
| 13 |
return evt.index
|
|
|
|
| 7 |
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
|
| 8 |
pipeline = AutoPipelineForInpainting.from_pretrained("diffusers/stable-diffusion-xl-1.0-inpainting-0.1", vae=vae, torch_dtype=torch.float16, variant="fp16", use_safetensors=True).to("cuda")
|
| 9 |
|
| 10 |
+
#@spaces.GPU()
|
| 11 |
def get_select_index(evt: gr.SelectData):
|
| 12 |
print(evt)
|
| 13 |
return evt.index
|