Skip to content

Commit bfe7ca7

Browse files
authored
fix: rename zhSim alphabet to zh_sim to match HF urls (#690)
## Description Fixes #680 ### Introduces a breaking change? - [ ] Yes - [x] No ### Type of change - [x] Bug fix (change which fixes an issue) - [ ] New feature (change which adds functionality) - [ ] Documentation update (improves or adds clarity to existing documentation) - [ ] Other (chores, tests, code style improvements etc.) ### Tested on - [ ] iOS - [ ] Android ### Testing instructions <!-- Provide step-by-step instructions on how to test your changes. Include setup details if necessary. --> ### Screenshots <!-- Add screenshots here, if applicable --> ### Related issues <!-- Link related issues here using #issue-number --> ### Checklist - [ ] I have performed a self-review of my code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have updated the documentation accordingly - [ ] My changes generate no new warnings ### Additional notes <!-- Include any additional information, assumptions, or context that reviewers might need to understand this PR. -->
1 parent 40e2f1a commit bfe7ca7

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

packages/react-native-executorch/src/constants/ocr/models.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ const RECOGNIZER_TELUGU_CRNN_256 = createHFRecognizerDownloadUrl('telugu', 256);
7676
const RECOGNIZER_TELUGU_CRNN_128 = createHFRecognizerDownloadUrl('telugu', 128);
7777
const RECOGNIZER_TELUGU_CRNN_64 = createHFRecognizerDownloadUrl('telugu', 64);
7878

79-
const RECOGNIZER_ZH_SIM_CRNN_512 = createHFRecognizerDownloadUrl('zhSim', 512);
80-
const RECOGNIZER_ZH_SIM_CRNN_256 = createHFRecognizerDownloadUrl('zhSim', 256);
81-
const RECOGNIZER_ZH_SIM_CRNN_128 = createHFRecognizerDownloadUrl('zhSim', 128);
82-
const RECOGNIZER_ZH_SIM_CRNN_64 = createHFRecognizerDownloadUrl('zhSim', 64);
79+
const RECOGNIZER_ZH_SIM_CRNN_512 = createHFRecognizerDownloadUrl('zh_sim', 512);
80+
const RECOGNIZER_ZH_SIM_CRNN_256 = createHFRecognizerDownloadUrl('zh_sim', 256);
81+
const RECOGNIZER_ZH_SIM_CRNN_128 = createHFRecognizerDownloadUrl('zh_sim', 128);
82+
const RECOGNIZER_ZH_SIM_CRNN_64 = createHFRecognizerDownloadUrl('zh_sim', 64);
8383

8484
const RECOGNIZER_CYRILLIC_CRNN_512 = createHFRecognizerDownloadUrl(
8585
'cyrillic',

0 commit comments

Comments
 (0)