Manireddy1508 commited on
Commit
883dce0
·
1 Parent(s): 17c447d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ import base64
6
 
7
  # Hugging Face ControlNet API (Canny version)
8
  HF_API = "https://api-inference.huggingface.co/models/lllyasviel/controlnet-sdxl-1.0-canny"
9
- # Secure: fetch from secret
10
 
11
  headers = {
12
  "Authorization": f"Bearer {API_KEY}"
 
6
 
7
  # Hugging Face ControlNet API (Canny version)
8
  HF_API = "https://api-inference.huggingface.co/models/lllyasviel/controlnet-sdxl-1.0-canny"
9
+ API_KEY = os.getenv("HF_API_KEY") # Secure: fetch from secret
10
 
11
  headers = {
12
  "Authorization": f"Bearer {API_KEY}"