ttzzs commited on
Commit
9fb828f
·
verified ·
1 Parent(s): 037b9f0

Fix: Update HF Inference API URL to router.huggingface.co

Browse files
Files changed (1) hide show
  1. app/main.py +1 -1
app/main.py CHANGED
@@ -127,7 +127,7 @@ def call_chronos_inference(series: List[float], prediction_length: int) -> Dict:
127
  # Intentar usando el endpoint específico de time series
128
  import requests
129
 
130
- url = f"https://api-inference.huggingface.co/models/{MODEL_ID}"
131
  headers = {"Authorization": f"Bearer {HF_TOKEN}"}
132
 
133
  payload = {
 
127
  # Intentar usando el endpoint específico de time series
128
  import requests
129
 
130
+ url = f"https://router.huggingface.co/hf-inference/models/{MODEL_ID}"
131
  headers = {"Authorization": f"Bearer {HF_TOKEN}"}
132
 
133
  payload = {