Noor22Tak commited on
Commit
0ec3c01
·
verified ·
1 Parent(s): 06ee9db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ HUGGINGFACE_API_KEY = os.getenv("HUGGINGFACE_API_KEY") # Load from environment
16
  # Hugging Face API details
17
  API_URL = "https://api-inference.huggingface.co/pipeline/feature-extraction/sentence-transformers/all-MiniLM-L6-v2"
18
  HEADERS = {
19
- "Authorization": "Bearer HUGGINGFACE_API_KEY",
20
  "Content-Type": "application/json; charset=UTF-8",
21
  }
22
 
 
16
  # Hugging Face API details
17
  API_URL = "https://api-inference.huggingface.co/pipeline/feature-extraction/sentence-transformers/all-MiniLM-L6-v2"
18
  HEADERS = {
19
+ "Authorization": f"Bearer {HUGGINGFACE_API_KEY}",
20
  "Content-Type": "application/json; charset=UTF-8",
21
  }
22