Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ import os
|
|
19 |
hf_token = os.getenv('HF_TOKEN')
|
20 |
|
21 |
API_URL = "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-xl-base-1.0"
|
22 |
-
headers = {"Authorization": "Bearer {hf_token}"}
|
23 |
|
24 |
def query(payload):
|
25 |
response = requests.post(API_URL, headers=headers, json=payload)
|
|
|
19 |
hf_token = os.getenv('HF_TOKEN')
|
20 |
|
21 |
API_URL = "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-xl-base-1.0"
|
22 |
+
headers = {"Authorization": f"Bearer {hf_token}"}
|
23 |
|
24 |
def query(payload):
|
25 |
response = requests.post(API_URL, headers=headers, json=payload)
|