Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from PIL import Image, ImageChops, ImageFilter, ImageOps
|
| 3 |
import io
|
|
@@ -87,6 +88,7 @@ def generate_alpha_outline_cv2(alpha: Image.Image) -> Image.Image:
|
|
| 87 |
|
| 88 |
return Image.fromarray(outline).convert("L")
|
| 89 |
|
|
|
|
| 90 |
def process_faceless(input_image, prompt="", negative_prompt=""):
|
| 91 |
if input_image is None:
|
| 92 |
return None, None
|
|
|
|
| 1 |
+
import spaces
|
| 2 |
import gradio as gr
|
| 3 |
from PIL import Image, ImageChops, ImageFilter, ImageOps
|
| 4 |
import io
|
|
|
|
| 88 |
|
| 89 |
return Image.fromarray(outline).convert("L")
|
| 90 |
|
| 91 |
+
@spaces.GPU
|
| 92 |
def process_faceless(input_image, prompt="", negative_prompt=""):
|
| 93 |
if input_image is None:
|
| 94 |
return None, None
|