Spaces:
Sleeping
Sleeping
Commit ·
71d95c1
1
Parent(s): 8f0d448
Fix 404 errors: Update to new Inference Providers API endpoint (router.huggingface.co/hf-inference)
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ from dotenv import load_dotenv
|
|
| 10 |
load_dotenv()
|
| 11 |
|
| 12 |
# Configuration
|
| 13 |
-
API_BASE = "https://
|
| 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 |
|