Spaces:
Sleeping
Sleeping
Updated HF endpoint to official models URL
Browse files
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(
|