Update app.py
Browse files
app.py
CHANGED
@@ -83,7 +83,7 @@ class TextToImageTool(Tool):
|
|
83 |
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."}}
|
84 |
output_type = "image"
|
85 |
model_sdxl = "black-forest-labs/FLUX.1-schnell"
|
86 |
-
client = InferenceClient(model_sdxl)
|
87 |
|
88 |
|
89 |
def forward(self, prompt):
|
|
|
83 |
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."}}
|
84 |
output_type = "image"
|
85 |
model_sdxl = "black-forest-labs/FLUX.1-schnell"
|
86 |
+
client = InferenceClient(model_sdxl, provider="replicate")
|
87 |
|
88 |
|
89 |
def forward(self, prompt):
|