Acytel commited on
Commit
ecd9c42
·
1 Parent(s): 766d875

Updated HF endpoint to official models URL

Browse files
Files changed (1) hide show
  1. api.py +0 -4
api.py CHANGED
@@ -38,10 +38,6 @@ async def rag_query(query: SearchQuery):
38
  hf_url = "https://api-inference.huggingface.co/models/sentence-transformers/all-MiniLM-L6-v2"
39
  headers = {"Authorization": f"Bearer {HF_TOKEN}"}
40
 
41
- # NEW: Bulletproof synchronous network call (Bypasses Render DNS bugs)
42
- hf_url = "https://api-inference.huggingface.co/pipeline/feature-extraction/sentence-transformers/all-MiniLM-L6-v2"
43
- headers = {"Authorization": f"Bearer {HF_TOKEN}"}
44
-
45
  print("Pinging Hugging Face...")
46
  try:
47
  hf_response = requests.post(
 
38
  hf_url = "https://api-inference.huggingface.co/models/sentence-transformers/all-MiniLM-L6-v2"
39
  headers = {"Authorization": f"Bearer {HF_TOKEN}"}
40
 
 
 
 
 
41
  print("Pinging Hugging Face...")
42
  try:
43
  hf_response = requests.post(