Quoc Bao Bui
commited on
Commit
·
eddf5bd
1
Parent(s):
e762c44
Add access token
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -20,7 +20,7 @@ def decode_base64_image(image_string):
|
|
20 |
class EndpointHandler:
|
21 |
def __init__(self, path=""):
|
22 |
self.pipe = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", torch_dtype=torch.float16,
|
23 |
-
revision="fp16")
|
24 |
self.pipe = self.pipe.to("cuda")
|
25 |
|
26 |
def __call__(self, data: Any) -> List[List[Dict[str, float]]]:
|
|
|
20 |
class EndpointHandler:
|
21 |
def __init__(self, path=""):
|
22 |
self.pipe = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", torch_dtype=torch.float16,
|
23 |
+
revision="fp16", use_auth_token="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")
|
24 |
self.pipe = self.pipe.to("cuda")
|
25 |
|
26 |
def __call__(self, data: Any) -> List[List[Dict[str, float]]]:
|