jonathanrstern
commited on
Commit
•
cdea72a
1
Parent(s):
54ddccf
use_safetensors = True
Browse files- handler.py +4 -1
handler.py
CHANGED
@@ -4,7 +4,10 @@ from diffusers import StableDiffusionPipeline
|
|
4 |
|
5 |
class EndpointHandler():
|
6 |
def __init__(self, path=""):
|
7 |
-
self.pipeline = StableDiffusionPipeline.from_single_file(
|
|
|
|
|
|
|
8 |
|
9 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
10 |
"""
|
|
|
4 |
|
5 |
class EndpointHandler():
|
6 |
def __init__(self, path=""):
|
7 |
+
self.pipeline = StableDiffusionPipeline.from_single_file(
|
8 |
+
"https://huggingface.co/artificialguybr/LogoRedmond-LogoLoraForSDXL/blob/main/LogoRedmond_LogoRedAF.safetensors",
|
9 |
+
use_safetensors=True
|
10 |
+
)
|
11 |
|
12 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
13 |
"""
|