ProfessorLeVesseur
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ if not hf_api_key:
|
|
18 |
raise ValueError("HF_API_KEY not set in environment variables")
|
19 |
|
20 |
API_URL = "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-xl-base-1.0"
|
21 |
-
headers = {"Authorization": f"Bearer {
|
22 |
|
23 |
#------------------------------------------------------------------------
|
24 |
# Configurations
|
|
|
18 |
raise ValueError("HF_API_KEY not set in environment variables")
|
19 |
|
20 |
API_URL = "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-xl-base-1.0"
|
21 |
+
headers = {"Authorization": f"Bearer {hf_api_key}"}
|
22 |
|
23 |
#------------------------------------------------------------------------
|
24 |
# Configurations
|