Spaces:
Sleeping
Sleeping
Update tool.py
Browse files2 unmodified lines34567892 unmodified linesclass TextToImageTool(Tool):default_checkpoint = "runwayml/stable-diffusion-v1-5"description = "This is a tool that creates an image according to a prompt, which is a text description."name = "image_generator"inputs = {"prompt": {"type": "text", "description": "The image generator prompt. Don't hesitate to add details in the prompt to make the image look better, like 'high-res, photorealistic', etc."}}2 unmodified lines3456782 unmodified linesclass TextToImageTool(Tool):description = "This is a tool that creates an image according to a prompt, which is a text description."name = "image_generator"inputs = {"prompt": {"type": "text", "description": "The image generator prompt. Don't hesitate to add details in the prompt to make the image look better, like 'high-res, photorealistic', etc."}}
tool.py-1