Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AI-Maria committed Feb 28, 2024
1 parent 31dd6d4 commit 7c12d9d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Encoder.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// This file includes code which was modified from https://github.com/openai/gpt-2
// Code ported from https://www.npmjs.com/package/gpt-3-encoder?activeTab=readme
// This file includes code which was modified from https://github.com/openai/gpt-2
// Code ported from https://www.npmjs.com/package/gpt-3-encoder?activeTab=readme
// To be able to be run without a server
async function readVocabFile() {
const response = await fetch("/vocab.bpe");
const response = await fetch("/PatrikZeros-ChatGPT-API-UI/vocab.bpe");
const text = await response.text();
return text;
}

async function readEncoder() {
const response = await fetch("/encoder.json");
const response = await fetch("/PatrikZeros-ChatGPT-API-UI/encoder.json");
const text = await response.text();
return text;
}
Expand Down Expand Up @@ -216,4 +216,4 @@
bpe_tokens = bpe_tokens.concat(new_tokens);
}
return bpe_tokens;
}
}

0 comments on commit 7c12d9d

Please sign in to comment.