KawaiiApp commited on
Commit
492876f
1 Parent(s): a632781

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +2 -2
handler.py CHANGED
@@ -42,11 +42,11 @@ class EndpointHandler():
42
  # Run inference pipeline
43
  with autocast(device.type):
44
  if negative_prompt is None:
45
- print(prompt=inputs, height=height, width=width, guidance_scale=float(guidance_scale))
46
  image = self.pipe(prompt=inputs, height=height, width=width, guidance_scale=float(guidance_scale))
47
  image = image.images[0]
48
  else:
49
- print(prompt=inputs, height=height, width=width, guidance_scale=float(guidance_scale))
50
  image = self.pipe(prompt=inputs, negative_prompt=negative_prompt, height=height, width=width, guidance_scale=float(guidance_scale))
51
  image = image.images[0]
52
 
 
42
  # Run inference pipeline
43
  with autocast(device.type):
44
  if negative_prompt is None:
45
+ print(str(inputs), str(height), str(width), str(guidance_scale_)
46
  image = self.pipe(prompt=inputs, height=height, width=width, guidance_scale=float(guidance_scale))
47
  image = image.images[0]
48
  else:
49
+ print(str(inputs), str(height), str(negative_prompt), str(width), str(guidance_scale))
50
  image = self.pipe(prompt=inputs, negative_prompt=negative_prompt, height=height, width=width, guidance_scale=float(guidance_scale))
51
  image = image.images[0]
52