Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,11 +2,10 @@ import gradio as gr
|
|
2 |
import torch
|
3 |
from diffusers import StableDiffusionInpaintPipeline
|
4 |
|
5 |
-
pipe = StableDiffusionInpaintPipeline.from_pretrained(
|
6 |
-
|
7 |
-
|
8 |
-
)
|
9 |
-
import gradio as gr
|
10 |
from PIL import Image
|
11 |
|
12 |
def process_image(image: Image.Image, prompt: str, slider_value: int) -> Image.Image:
|
|
|
2 |
import torch
|
3 |
from diffusers import StableDiffusionInpaintPipeline
|
4 |
|
5 |
+
# pipe = StableDiffusionInpaintPipeline.from_pretrained(
|
6 |
+
# "stabilityai/stable-diffusion-2-inpainting",
|
7 |
+
# torch_dtype=torch.float16,
|
8 |
+
# )
|
|
|
9 |
from PIL import Image
|
10 |
|
11 |
def process_image(image: Image.Image, prompt: str, slider_value: int) -> Image.Image:
|