Skip to content

Commit

Permalink
Download model files from github instead of huggingface. (#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj authored Feb 22, 2024
1 parent 7cb8520 commit 77b6367
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/source/onnx/android/build-sherpa-onnx.rst
Original file line number Diff line number Diff line change
Expand Up @@ -312,13 +312,16 @@ Use the following command to download the pre-trained model and place it into
sudo apt-get install git-lfs
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20
wget https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20.tar.bz2
tar xvf sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20.tar.bz2
rm sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20.tar.bz2
cd sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20
git lfs pull --include "*.onnx"
# Now, remove extra files to reduce the file size of the generated apk
rm -rf .git test_wavs
rm *.sh README.md
rm -f *.sh README.md
In the end, you should have the following files:

Expand Down

0 comments on commit 77b6367

Please sign in to comment.