Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import os
|
|
6 |
|
7 |
# API Configuration
|
8 |
API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-dev"
|
9 |
-
headers = {"Authorization": f"Bearer {os.getenv('
|
10 |
|
11 |
# Function to query the Hugging Face API
|
12 |
def query(payload):
|
|
|
6 |
|
7 |
# API Configuration
|
8 |
API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-dev"
|
9 |
+
headers = {"Authorization": f"Bearer {os.getenv('HF')}"}
|
10 |
|
11 |
# Function to query the Hugging Face API
|
12 |
def query(payload):
|