Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fix: new api routes in updateLocalEnv
Browse files
scripts/updateLocalEnv.ts
CHANGED
@@ -27,7 +27,7 @@ let full_config = `${PUBLIC_CONFIG}\n${SECRET_CONFIG}`;
|
|
27 |
// replace the internal proxy url with the public endpoint
|
28 |
full_config = full_config.replaceAll(
|
29 |
"https://internal.api-inference.huggingface.co",
|
30 |
-
"https://
|
31 |
);
|
32 |
|
33 |
full_config = full_config.replaceAll("COOKIE_SECURE=`true`", "COOKIE_SECURE=`false`");
|
|
|
27 |
// replace the internal proxy url with the public endpoint
|
28 |
full_config = full_config.replaceAll(
|
29 |
"https://internal.api-inference.huggingface.co",
|
30 |
+
"https://router.huggingface.co/hf-inference"
|
31 |
);
|
32 |
|
33 |
full_config = full_config.replaceAll("COOKIE_SECURE=`true`", "COOKIE_SECURE=`false`");
|