Update handler.py
Browse files- handler.py +2 -2
handler.py
CHANGED
@@ -44,10 +44,10 @@ class EndpointHandler:
|
|
44 |
inputs = data.pop("inputs", data)
|
45 |
|
46 |
# Automatically add trigger tokens to the beginning of the prompt
|
|
|
47 |
images = self.pipe(
|
48 |
inputs,
|
49 |
-
|
50 |
-
num_inference_steps=25
|
51 |
).images
|
52 |
image = images[0]
|
53 |
|
|
|
44 |
inputs = data.pop("inputs", data)
|
45 |
|
46 |
# Automatically add trigger tokens to the beginning of the prompt
|
47 |
+
print(data)
|
48 |
images = self.pipe(
|
49 |
inputs,
|
50 |
+
**data['parameters']
|
|
|
51 |
).images
|
52 |
image = images[0]
|
53 |
|