danielkorat commited on
Commit
d6b6e89
·
verified ·
1 Parent(s): 07170f3

Update tool.py

Browse files
Files changed (1) hide show
  1. tool.py +1 -1
tool.py CHANGED
@@ -7,7 +7,7 @@ SAVE_PATH = "/tmp/generated_image.png"
7
 
8
  class TextToImageTool(Tool):
9
  # description = "This tool creates an image according to a prompt, which is a text description. When using this tool in a code snippet, the last line of the snippet should be the the tool call (so the image is shown on screen)."
10
- description = f"This tool creates an image according to a prompt, which is a text description. For displaying the image, use the returned PIL object. It's also saved to `{SAVE_PATH}`."
11
  name = "image_generator"
12
  inputs = {"prompt": {"type": "string", "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."},
13
  # "save_path": {"type": "string", "description": "A file path in `/tmp` to save the image to. The file path extenstion should be .png", "nullable": True}
 
7
 
8
  class TextToImageTool(Tool):
9
  # description = "This tool creates an image according to a prompt, which is a text description. When using this tool in a code snippet, the last line of the snippet should be the the tool call (so the image is shown on screen)."
10
+ description = f"This tool creates an image according to a prompt, which is a text description. For displaying the image, use the returned PIL object. This tool saves the image to `{SAVE_PATH}`, so there is no need to save it externally."
11
  name = "image_generator"
12
  inputs = {"prompt": {"type": "string", "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."},
13
  # "save_path": {"type": "string", "description": "A file path in `/tmp` to save the image to. The file path extenstion should be .png", "nullable": True}