csukuangfj commited on
Commit
d60566f
1 Parent(s): b0eec9a

small fixes

Browse files
Files changed (1) hide show
  1. model.py +4 -3
model.py CHANGED
@@ -14,10 +14,12 @@
14
  # See the License for the specific language governing permissions and
15
  # limitations under the License.
16
 
17
- from huggingface_hub import hf_hub_download
18
- from functools import lru_cache
19
  import os
 
 
 
20
  import torchaudio
 
21
 
22
  os.system(
23
  "cp -v /home/user/.local/lib/python3.8/site-packages/k2/lib/*.so /home/user/.local/lib/python3.8/site-packages/sherpa/lib/"
@@ -26,7 +28,6 @@ os.system(
26
  import k2
27
  import sherpa
28
 
29
-
30
  sample_rate = 16000
31
 
32
 
 
14
  # See the License for the specific language governing permissions and
15
  # limitations under the License.
16
 
 
 
17
  import os
18
+ from functools import lru_cache
19
+ from typing import Union
20
+
21
  import torchaudio
22
+ from huggingface_hub import hf_hub_download
23
 
24
  os.system(
25
  "cp -v /home/user/.local/lib/python3.8/site-packages/k2/lib/*.so /home/user/.local/lib/python3.8/site-packages/sherpa/lib/"
 
28
  import k2
29
  import sherpa
30
 
 
31
  sample_rate = 16000
32
 
33