Spaces:
Sleeping
Sleeping
Fix: correct API URL → api-inference.huggingface.co
Browse files
app.py
CHANGED
|
@@ -4,10 +4,10 @@ import requests
|
|
| 4 |
import os
|
| 5 |
|
| 6 |
HF_TOKEN = os.environ.get("HF_TOKEN", "")
|
| 7 |
-
|
| 8 |
|
| 9 |
# ✅ CORRECT inference API URL
|
| 10 |
-
API_URL = "https://api-inference.huggingface.co/
|
| 11 |
|
| 12 |
HEADERS = {
|
| 13 |
"Authorization": f"Bearer {HF_TOKEN}",
|
|
|
|
| 4 |
import os
|
| 5 |
|
| 6 |
HF_TOKEN = os.environ.get("HF_TOKEN", "")
|
| 7 |
+
|
| 8 |
|
| 9 |
# ✅ CORRECT inference API URL
|
| 10 |
+
API_URL = "https://api-inference.huggingface.co/asolomonqa/asmgenius-v1"
|
| 11 |
|
| 12 |
HEADERS = {
|
| 13 |
"Authorization": f"Bearer {HF_TOKEN}",
|