Skip to content

Commit

Permalink
fix: paddle OCR model cache
Browse files Browse the repository at this point in the history
Tsuk1ko committed Mar 29, 2024
1 parent 904a657 commit d3ac8c6
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/workers/paddlejsOCR/index.js
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ const hasDataCache = async () => {
const cachedUrlSet = _.transform(
cacheList,
(set, req) => {
if (req.url.startsWith('https://paddlejs.bj.bcebos.com/')) {
if (req.url.startsWith('https://js-models.bj.bcebos.com/')) {
set.add(req.url);
}
},
1 change: 1 addition & 0 deletions src/workers/paddlejsOCR/paddle.js
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ import config from '@arkntools/paddlejs-ocr/dist/defaultInitConfig';
['辅', 128, 1952, 2859],
['攻', 1809],
['干', 89],
['员', 4525],
['援', 546, 3052],
['重', 340, 1300],
['攻', 4638],
2 changes: 1 addition & 1 deletion vue.config.js
Original file line number Diff line number Diff line change
@@ -262,7 +262,7 @@ const runtimeCachingURLs = [
'https://fonts.loli.net',
'https://gstatic.loli.net',
'https://fastly.jsdelivr.net',
'https://paddlejs.bj.bcebos.com',
'https://js-models.bj.bcebos.com',
].map(url => new URL(url));

if (env.VUE_APP_DATA_BASE_URL) {

0 comments on commit d3ac8c6

Please sign in to comment.