PeterPinetree commited on
Commit
71d95c1
·
1 Parent(s): 8f0d448

Fix 404 errors: Update to new Inference Providers API endpoint (router.huggingface.co/hf-inference)

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ from dotenv import load_dotenv
10
  load_dotenv()
11
 
12
  # Configuration
13
- API_BASE = "https://api-inference.huggingface.co/models/"
14
  MODEL_ID = "openai-community/gpt2"
15
  HF_TOKEN = os.getenv('HF_NEXT_TOKEN_PREDICTOR_TOKEN', '')
16
 
 
10
  load_dotenv()
11
 
12
  # Configuration
13
+ API_BASE = "https://router.huggingface.co/hf-inference/models/"
14
  MODEL_ID = "openai-community/gpt2"
15
  HF_TOKEN = os.getenv('HF_NEXT_TOKEN_PREDICTOR_TOKEN', '')
16