Spaces:
Sleeping
Sleeping
File size: 1,352 Bytes
982edf4 5ce1fe8 982edf4 a1550df 26dfa9a a1550df 0cc455e e7f863b 0cc455e 85881d8 26dfa9a a1550df 26dfa9a a1550df 340eeda a1550df 340eeda |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
---
title: ASR
emoji: 📈
colorFrom: purple
colorTo: green
sdk: docker
pinned: false
license: apache-2.0
---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
### ASR
```text
docker build -t asr:v20240511_1022 .
docker run -itd --name ASR \
--network host \
-v /data/tianxing/PycharmProjects/asr/data/:/home/user/app/data/ \
-v /data/tianxing/PycharmProjects/asr/pretrained_models/:/home/user/app/pretrained_models/ \
asr:v20240511_1022 /bin/bash
```
```text
docker cp ASR:/tmp/asr/si_chuan_hua.wav /home/nlp
```
### 异常1
https://blog.csdn.net/sinat_28442665/article/details/126154991
```text
ImportError: libpython3.8.so.1.0: cannot open shared object file: No such file or directory
```
查找 libpython3.8.so.1.0 共享库所在目录
```text
find / -name libpython3.8.so.1.0
```
添加 LD_LIBRARY_PATH
```text
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/miniconda3/envs/ASR/lib/
```
### 异常2
https://blog.csdn.net/qq_38225558/article/details/128641561
```text
ImportError: libk2_torch_api.so: cannot open shared object file: No such file or directory
```
查找 libk2_torch_api.so 共享库所在目录
```text
find / -name libk2_torch_api.so
```
添加 LD_LIBRARY_PATH
```text
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/python3.8/site-packages/k2/lib/
```
|