Spaces:
Build error
Build error
Update endpoints.py
Browse files- endpoints.py +2 -15
endpoints.py
CHANGED
@@ -4,21 +4,8 @@ from routers import training
|
|
4 |
from huggingface_hub import login
|
5 |
from config import settings
|
6 |
import torch
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
# # pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", revision="fp16", torch_dtype=torch.float16)
|
11 |
-
# pipe = StableDiffusionInpaintPipeline.from_pretrained(
|
12 |
-
# "stabilityai/stable-diffusion-2-inpainting",
|
13 |
-
# torch_dtype=torch.float16,
|
14 |
-
# )
|
15 |
-
|
16 |
-
from diffusers import AutoPipelineForInpainting
|
17 |
-
from diffusers.utils import load_image, make_image_grid
|
18 |
-
|
19 |
-
pipee = AutoPipelineForInpainting.from_pretrained(
|
20 |
-
"kandinsky-community/kandinsky-2-2-decoder-inpaint", torch_dtype=torch.float16
|
21 |
-
)
|
22 |
|
23 |
login(settings.huggingface_key)
|
24 |
|
|
|
4 |
from huggingface_hub import login
|
5 |
from config import settings
|
6 |
import torch
|
7 |
+
from diffusers import StableDiffusionPipeline
|
8 |
+
pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", torch_dtype=torch.float16)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
login(settings.huggingface_key)
|
11 |
|