-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathtransformers.js.patch
More file actions
17 lines (17 loc) · 1.01 KB
/
Copy pathtransformers.js.patch
File metadata and controls
17 lines (17 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/transformersjs/build/transformers.js b/transformersjs/build/transformers.js
index b8e1342..0c702e8 100644
--- a/transformersjs/build/transformers.js
+++ b/transformersjs/build/transformers.js
@@ -37868,11 +37868,10 @@ function quantize_embeddings(tensor, precision) {
/******/
/******/ /* webpack/runtime/publicPath */
/******/ (() => {
-/******/ var scriptUrl;
+/******/ var scriptUrl = '';
/******/ if (typeof import.meta.url === "string") scriptUrl = import.meta.url
/******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
/******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
-/******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
/******/ scriptUrl = scriptUrl.replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
/******/ __webpack_require__.p = scriptUrl;
/******/ })();