Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ Generate the code:"""
|
|
| 31 |
|
| 32 |
try:
|
| 33 |
# Hugging Face Inference API endpoint
|
| 34 |
-
api_url = f"https://
|
| 35 |
|
| 36 |
headers = {
|
| 37 |
"Authorization": f"Bearer {api_token}",
|
|
|
|
| 31 |
|
| 32 |
try:
|
| 33 |
# Hugging Face Inference API endpoint
|
| 34 |
+
api_url = f"https://router.huggingface.co/models/{model_id}"
|
| 35 |
|
| 36 |
headers = {
|
| 37 |
"Authorization": f"Bearer {api_token}",
|