asad commited on
Commit
731fe3d
·
verified ·
1 Parent(s): 98fe44e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)