lysandre HF staff commited on
Commit
9c61b4b
1 Parent(s): c195ce7
Files changed (1) hide show
  1. text_to_image.py +2 -0
text_to_image.py CHANGED
@@ -14,6 +14,8 @@ TEXT_TO_IMAGE_DESCRIPTION = (
14
  class TextToImageTool(Tool):
15
  default_checkpoint = "runwayml/stable-diffusion-v1-5"
16
  description = TEXT_TO_IMAGE_DESCRIPTION
 
 
17
 
18
  def __init__(self, device=None, **hub_kwargs) -> None:
19
  if not is_accelerate_available():
 
14
  class TextToImageTool(Tool):
15
  default_checkpoint = "runwayml/stable-diffusion-v1-5"
16
  description = TEXT_TO_IMAGE_DESCRIPTION
17
+ inputs = ['text']
18
+ outputs = ['image']
19
 
20
  def __init__(self, device=None, **hub_kwargs) -> None:
21
  if not is_accelerate_available():