Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ if not HUGGINGFACE_API_KEY:
|
|
19 |
# Define the Hugging Face Inference API URL for a text-to-image model
|
20 |
# You can choose a different model if preferred
|
21 |
MODEL_NAME = "stabilityai/stable-diffusion-2-1" # Ensure this model is available for your API key
|
22 |
-
API_URL = f"https://api-inference.huggingface.co/models/
|
23 |
|
24 |
headers = {
|
25 |
"Authorization": f"Bearer {HUGGINGFACE_API_KEY}"
|
|
|
19 |
# Define the Hugging Face Inference API URL for a text-to-image model
|
20 |
# You can choose a different model if preferred
|
21 |
MODEL_NAME = "stabilityai/stable-diffusion-2-1" # Ensure this model is available for your API key
|
22 |
+
API_URL = f"https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-schnell"
|
23 |
|
24 |
headers = {
|
25 |
"Authorization": f"Bearer {HUGGINGFACE_API_KEY}"
|