Update tools/text_to_image.py
Browse files- tools/text_to_image.py +2 -2
tools/text_to_image.py
CHANGED
|
@@ -7,8 +7,8 @@ class TextToImageTool(Tool):
|
|
| 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 |
-
|
| 11 |
-
client = InferenceClient(
|
| 12 |
|
| 13 |
|
| 14 |
def forward(self, prompt):
|
|
|
|
| 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 = "black-forest-labs/FLUX.1-schnell"
|
| 11 |
+
client = InferenceClient(model)
|
| 12 |
|
| 13 |
|
| 14 |
def forward(self, prompt):
|