azdxit commited on
Commit
7843402
·
1 Parent(s): 3ba34dc

Update Hugging Face API endpoint to use the new router URL

Browse files

Update Hugging Face API endpoint in app.py and app_local.py to use the new router.huggingface.co/hf-inference URL.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a662ebb5-fd71-4dd7-ad81-6f1890051700
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: c891807b-1022-4b45-a00a-e47da1f4090f
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/d9f57912-08a1-48b9-ad13-f36ce06579fd/a662ebb5-fd71-4dd7-ad81-6f1890051700/fWRWvD9

Files changed (2) hide show
  1. app.py +1 -1
  2. app_local.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ from PIL import Image
13
  import numpy as np
14
  from progress_tracker import get_tracker, JobStatus
15
 
16
- HF_API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-schnell"
17
 
18
  UPLOAD_DIR = Path("uploads")
19
  OUTPUT_DIR = Path("outputs")
 
13
  import numpy as np
14
  from progress_tracker import get_tracker, JobStatus
15
 
16
+ HF_API_URL = "https://router.huggingface.co/hf-inference/models/black-forest-labs/FLUX.1-schnell"
17
 
18
  UPLOAD_DIR = Path("uploads")
19
  OUTPUT_DIR = Path("outputs")
app_local.py CHANGED
@@ -20,7 +20,7 @@ except ImportError:
20
  import urllib.request
21
  HAS_HTTPX = False
22
 
23
- HF_API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-schnell"
24
 
25
  jobs = {}
26
 
 
20
  import urllib.request
21
  HAS_HTTPX = False
22
 
23
+ HF_API_URL = "https://router.huggingface.co/hf-inference/models/black-forest-labs/FLUX.1-schnell"
24
 
25
  jobs = {}
26