maialumiaho commited on
Commit
1dfe549
1 Parent(s): a483ba9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ import os
6
 
7
  hf_token = os.environ.get("hf_token")
8
  API_URL = "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)
 
6
 
7
  hf_token = os.environ.get("hf_token")
8
  API_URL = "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)