Spaces:
Running
Running
maialumiaho
commited on
Commit
•
5b6119d
1
Parent(s):
b0a0002
Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,9 @@ import io
|
|
4 |
from PIL import Image
|
5 |
import os
|
6 |
|
7 |
-
hf_token = os.environ.get("
|
8 |
API_URL_SD = "https://api-inference.huggingface.co/models/xinsir/controlnet-union-sdxl-1.0"
|
9 |
-
headers = {"Authorization": f"Bearer
|
10 |
|
11 |
def query(payload):
|
12 |
response = requests.post(API_URL, headers=headers, json=payload)
|
|
|
4 |
from PIL import Image
|
5 |
import os
|
6 |
|
7 |
+
hf_token = os.environ.get("hf_token")
|
8 |
API_URL_SD = "https://api-inference.huggingface.co/models/xinsir/controlnet-union-sdxl-1.0"
|
9 |
+
headers = {"Authorization": f"Bearer hf_token"}
|
10 |
|
11 |
def query(payload):
|
12 |
response = requests.post(API_URL, headers=headers, json=payload)
|