Skip to content

Commit

Permalink
allow local models
Browse files Browse the repository at this point in the history
  • Loading branch information
n4ze3m committed Nov 28, 2023
1 parent 0d50d2c commit 045e1e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/utils/pipleline.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
exports.piplelineTransformer = async () => {
let { pipeline, env } = await import("@xenova/transformers");
env.useBrowserCache = false;
env.allowLocalModels = false;
if (process.env.NODE_ENV === "production") {
env.cacheDir = "./.cache";

env.cacheDir = "./uploads/.cache";
}
return pipeline;
};

0 comments on commit 045e1e0

Please sign in to comment.