m-ric HF staff commited on
Commit
e8e18da
1 Parent(s): 5f5b2e1

Update text_to_image.py

Browse files
Files changed (1) hide show
  1. text_to_image.py +1 -1
text_to_image.py CHANGED
@@ -15,7 +15,7 @@ class TextToImageTool(Tool):
15
  default_checkpoint = "runwayml/stable-diffusion-v1-5"
16
  description = TEXT_TO_IMAGE_DESCRIPTION
17
  name = "image_generator"
18
- inputs = {"prompt": {"type": "text", "description": "the image description"}}
19
  output_type = "image"
20
 
21
  def __init__(self, device=None, **hub_kwargs) -> None:
 
15
  default_checkpoint = "runwayml/stable-diffusion-v1-5"
16
  description = TEXT_TO_IMAGE_DESCRIPTION
17
  name = "image_generator"
18
+ inputs = {"prompt": {"type": "string", "description": "the image description"}}
19
  output_type = "image"
20
 
21
  def __init__(self, device=None, **hub_kwargs) -> None: