Mirza Učanbarlić
commited on
Commit
·
09fe324
1
Parent(s):
64b6937
remove cuda
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -7,7 +7,7 @@ from io import BytesIO
|
|
| 7 |
class EndpointHandler():
|
| 8 |
def __init__(self, path=""):
|
| 9 |
repo_id = "runwayml/stable-diffusion-v1-5"
|
| 10 |
-
self.pipeline = StableDiffusionImg2ImgPipeline.from_pretrained(repo_id)
|
| 11 |
pipeline.load_lora_weights("simulationcartridge/ppl")
|
| 12 |
|
| 13 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
|
|
| 7 |
class EndpointHandler():
|
| 8 |
def __init__(self, path=""):
|
| 9 |
repo_id = "runwayml/stable-diffusion-v1-5"
|
| 10 |
+
self.pipeline = StableDiffusionImg2ImgPipeline.from_pretrained(repo_id)
|
| 11 |
pipeline.load_lora_weights("simulationcartridge/ppl")
|
| 12 |
|
| 13 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|