multimodalart HF staff commited on
Commit
d958ce8
1 Parent(s): a5e7022

Update handler.py

Browse files
Files changed (1) hide show
  1. 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
- cross_attention_kwargs={"scale": 0.8},
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