danielkorat commited on
Commit
4c36c35
·
verified ·
1 Parent(s): 51cbe83

Update tool.py

Browse files
Files changed (1) hide show
  1. tool.py +1 -1
tool.py CHANGED
@@ -10,7 +10,7 @@ class TextToImageTool(Tool):
10
  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."}}
11
  output_type = "image"
12
  model_sdxl = "black-forest-labs/FLUX.1-schnell"
13
- client = InferenceClient(model_sdxl, token=os.environ["HF_TOKEN"])
14
 
15
 
16
  def forward(self, prompt):
 
10
  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."}}
11
  output_type = "image"
12
  model_sdxl = "black-forest-labs/FLUX.1-schnell"
13
+ client = InferenceClient(model_sdxl, token=os.environ["HUB_TOKEN"])
14
 
15
 
16
  def forward(self, prompt):