Update handler.py
Browse files- handler.py +4 -1
handler.py
CHANGED
|
@@ -33,8 +33,11 @@ class EndpointHandler:
|
|
| 33 |
self.pipe_refiner.enable_model_cpu_offload()
|
| 34 |
|
| 35 |
def __call__(self, data: Dict[str, Any]) -> Dict[str, str]:
|
|
|
|
|
|
|
|
|
|
| 36 |
print(inputs)
|
| 37 |
-
prompt, prompt2, negative_prompt, negative_prompt2
|
| 38 |
|
| 39 |
image_base_latent = self.pipe(
|
| 40 |
prompt=prompt,
|
|
|
|
| 33 |
self.pipe_refiner.enable_model_cpu_offload()
|
| 34 |
|
| 35 |
def __call__(self, data: Dict[str, Any]) -> Dict[str, str]:
|
| 36 |
+
print(data)
|
| 37 |
+
inputs = data.pop("inputs", data)
|
| 38 |
+
|
| 39 |
print(inputs)
|
| 40 |
+
prompt, prompt2, negative_prompt, negative_prompt2 = inputs['prompt'], inputs['prompt2'], inputs['negative_prompt'], inputs['negative_prompt2']
|
| 41 |
|
| 42 |
image_base_latent = self.pipe(
|
| 43 |
prompt=prompt,
|