m-ric HF staff commited on
Commit
9db37f0
·
verified ·
1 Parent(s): 0e6db7b

Update tool.py

Browse files
Files changed (1) hide show
  1. tool.py +1 -1
tool.py CHANGED
@@ -5,7 +5,7 @@ from huggingface_hub import InferenceClient
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."}}
9
  output_type = "image"
10
  model_sdxl = "stabilityai/stable-diffusion-xl-base-1.0"
11
  client = InferenceClient(model_sdxl)
 
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": "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."}}
9
  output_type = "image"
10
  model_sdxl = "stabilityai/stable-diffusion-xl-base-1.0"
11
  client = InferenceClient(model_sdxl)