Spaces:
Sleeping
Sleeping
Update tool.py
Browse files
tool.py
CHANGED
|
@@ -3,7 +3,6 @@ from huggingface_hub import InferenceClient
|
|
| 3 |
|
| 4 |
|
| 5 |
class TextToImageTool(Tool):
|
| 6 |
-
default_checkpoint = "runwayml/stable-diffusion-v1-5"
|
| 7 |
description = "This is a tool that creates an image according to a prompt, which is a text description."
|
| 8 |
name = "image_generator"
|
| 9 |
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."}}
|
|
|
|
| 3 |
|
| 4 |
|
| 5 |
class TextToImageTool(Tool):
|
|
|
|
| 6 |
description = "This is a tool that creates an image according to a prompt, which is a text description."
|
| 7 |
name = "image_generator"
|
| 8 |
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."}}
|