Spaces:
Sleeping
Sleeping
Update main_api.py
Browse files- main_api.py +1 -1
main_api.py
CHANGED
|
@@ -104,7 +104,7 @@ async def rag(request: RAGRequest):
|
|
| 104 |
# HuggingFace Inference API for embeddings
|
| 105 |
API_URL = "https://router.huggingface.co/hf-inference/models/BAAI/bge-large-en-v1.5/pipeline/feature-extraction"
|
| 106 |
headers = {
|
| 107 |
-
"Authorization": hf_token,
|
| 108 |
}
|
| 109 |
|
| 110 |
def query(payload):
|
|
|
|
| 104 |
# HuggingFace Inference API for embeddings
|
| 105 |
API_URL = "https://router.huggingface.co/hf-inference/models/BAAI/bge-large-en-v1.5/pipeline/feature-extraction"
|
| 106 |
headers = {
|
| 107 |
+
"Authorization": f"Bearer {hf_token}",
|
| 108 |
}
|
| 109 |
|
| 110 |
def query(payload):
|