Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ if api_key is None:
|
|
| 31 |
headers = {"Authorization": f"Bearer {api_key}"}
|
| 32 |
|
| 33 |
# Define the API URL for image generation (replace with actual model URL)
|
| 34 |
-
API_URL = "https://api-inference.huggingface.co/models/
|
| 35 |
|
| 36 |
# Query Hugging Face API to generate image with error handling
|
| 37 |
def query(payload):
|
|
|
|
| 31 |
headers = {"Authorization": f"Bearer {api_key}"}
|
| 32 |
|
| 33 |
# Define the API URL for image generation (replace with actual model URL)
|
| 34 |
+
API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-dev" # Updated model URL
|
| 35 |
|
| 36 |
# Query Hugging Face API to generate image with error handling
|
| 37 |
def query(payload):
|