cesparzaf commited on
Commit
9a9d351
·
verified ·
1 Parent(s): 7fac936

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -196,7 +196,7 @@ def generate_plan_with_phi(prompt: str) -> str:
196
 
197
  # 2) Fallback vía REST
198
  try:
199
- url = f"https://api-inference.huggingface.co/models/{HF_MODEL_ID}"
200
  headers = {"Authorization": f"Bearer {HF_TOKEN}"}
201
  payload = {
202
  "inputs": prompt,
 
196
 
197
  # 2) Fallback vía REST
198
  try:
199
+ url = f"https://router.huggingface.co/hf-inference/models/{HF_MODEL_ID}"
200
  headers = {"Authorization": f"Bearer {HF_TOKEN}"}
201
  payload = {
202
  "inputs": prompt,