chansung commited on
Commit
390eb53
·
1 Parent(s): 83b5221

update custom handler

Browse files
__pycache__/handler.cpython-38.pyc CHANGED
Binary files a/__pycache__/handler.cpython-38.pyc and b/__pycache__/handler.cpython-38.pyc differ
 
handler.py CHANGED
@@ -4,7 +4,7 @@ import keras_cv
4
 
5
  class EndpointHandler():
6
  def __init__(self, path=""):
7
- self.sd = keras_cv.models.StableDiffusion(img_width=512, img_height=512)
8
 
9
  def __call__(self, data: Dict[str, Any]) -> str:
10
  # get inputs
 
4
 
5
  class EndpointHandler():
6
  def __init__(self, path=""):
7
+ self.sd = keras_cv.models.StableDiffusionV2(img_width=512, img_height=512)
8
 
9
  def __call__(self, data: Dict[str, Any]) -> str:
10
  # get inputs
requirements.txt CHANGED
@@ -1,3 +1,3 @@
1
- keras-cv
2
- tensorflow
3
- tensorflow_datasets
 
1
+ keras-cv==0.4
2
+ tensorflow==2.11
3
+ tensorflow_datasets