Update app.py
Browse files
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 |
|