Spaces:
Runtime error
Runtime error
Update text_to_image.py
Browse files- 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": "
|
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:
|