maialumiaho commited on
Commit
5b6119d
1 Parent(s): b0a0002

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,9 +4,9 @@ import io
4
  from PIL import Image
5
  import os
6
 
7
- hf_token = os.environ.get("spaces_prototype")
8
  API_URL_SD = "https://api-inference.huggingface.co/models/xinsir/controlnet-union-sdxl-1.0"
9
- headers = {"Authorization": f"Bearer spaces_prototype"}
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)