JanadaSroor commited on
Commit
f324b9c
·
verified ·
1 Parent(s): 07e998a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ Generate the code:"""
31
 
32
  try:
33
  # Hugging Face Inference API endpoint
34
- api_url = f"https://api-inference.huggingface.co/models/{model_id}"
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}",