Spaces:
Sleeping
Sleeping
Update tool.py
Browse files
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["
|
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):
|