enesbol commited on
Commit
db9c4f6
·
1 Parent(s): 83258f8

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +2 -1
handler.py CHANGED
@@ -3,7 +3,8 @@ from diffusers import StableDiffusionInstructPix2PixPipeline, EulerAncestralDisc
3
  import base64
4
  from io import BytesIO
5
  from PIL import Image
6
- from webcolors import hex_to_name, CSS3_HEX_TO_NAMES
 
7
 
8
  class EndpointHandler():
9
  def __init__(self, path=""):
 
3
  import base64
4
  from io import BytesIO
5
  from PIL import Image
6
+ from scipy.spatial import KDTree
7
+ from webcolors import CSS3_HEX_TO_NAMES, hex_to_rgb, hex_to_name
8
 
9
  class EndpointHandler():
10
  def __init__(self, path=""):