Skip to content

Commit

Permalink
fix: update where the models come from
Browse files Browse the repository at this point in the history
  • Loading branch information
cmgriffing committed Jun 2, 2024
1 parent 766f2c8 commit 120aaff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/utils/model-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ const dbName = "whisperModels";
// const modelBaseUrl = "/models";
// remote
// const modelBaseUrl = "https://f002.backblazeb2.com/file/orderly-models"; // NO CORS
const modelBaseUrl =
"https://link.storjshare.io/s/jueavj4qtolpgszkbp5awref22da/models";
// const modelBaseUrl =
// "https://link.storjshare.io/s/jueavj4qtolpgszkbp5awref22da/models"; // TRIAL EXPIRED
const modelBaseUrl = "https://orderly-models.cmgriffing.com";

// TODO: this method seems to leak memory when changing models
export function loadOrGetModel(
Expand Down Expand Up @@ -83,7 +84,7 @@ export function loadOrGetModel(
return;
}

const url = `${modelBaseUrl}/${selectedModel}.bin?download=1`;
const url = `${modelBaseUrl}/${selectedModel}.bin`;

fetchRemote(url, (progress) => {
progressCallback(progress);
Expand Down

0 comments on commit 120aaff

Please sign in to comment.