MohamedFahim commited on
Commit
a6955b4
·
verified ·
1 Parent(s): 3b5a9d4

Update main_api.py

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