Spaces:
Runtime error
Runtime error
Thomas G. Lopes commited on
Commit ·
7260a80
1
Parent(s): 6961b4c
fix models 401
Browse files17 unmodified lines181920212222232425262728293031323334353637383917 unmodified lines const HF_TOKEN = env.HF_TOKEN;
const res = await fetch(apiUrl, { credentials: "include", headers: { Authorization: `Bearer ${HF_TOKEN}`, "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Language": "en-US,en;q=0.5", "Upgrade-Insecure-Requests": "1", "Sec-Fetch-Dest": "document", "Sec-Fetch-Mode": "navigate", "Sec-Fetch-Site": "none", "Sec-Fetch-User": "?1", "Priority": "u=0, i", "Pragma": "no-cache", "Cache-Control": "no-cache", }, method: "GET", mode: "cors", });
if (!res.ok) {src/routes/api/models/+server.ts+14-1