Spaces:
Runtime error
Runtime error
csukuangfj
commited on
Commit
•
2adf0c8
1
Parent(s):
aa56d75
small fixes
Browse files
app.py
CHANGED
@@ -139,7 +139,7 @@ def process(
|
|
139 |
s.accept_wave_file(filename)
|
140 |
recognizer.decode_stream(s)
|
141 |
|
142 |
-
logging.info(s.text)
|
143 |
|
144 |
date_time = now.strftime("%Y-%m-%d %H:%M:%S.%f")
|
145 |
end = time.time()
|
|
|
139 |
s.accept_wave_file(filename)
|
140 |
recognizer.decode_stream(s)
|
141 |
|
142 |
+
logging.info(s.result.text)
|
143 |
|
144 |
date_time = now.strftime("%Y-%m-%d %H:%M:%S.%f")
|
145 |
end = time.time()
|
model.py
CHANGED
@@ -18,26 +18,9 @@ from huggingface_hub import hf_hub_download
|
|
18 |
from functools import lru_cache
|
19 |
import os
|
20 |
|
21 |
-
os.system("ls -lh /home/user/.local/lib/python3.8/site-packages")
|
22 |
-
os.system("ls -lh /home/user/.local/lib/python3.8/site-packages/k2/lib")
|
23 |
-
os.system(
|
24 |
-
"readelf -d /home/user/.local/lib/python3.8/site-packages/_sherpa.cpython-38-x86_64-linux-gnu.so"
|
25 |
-
)
|
26 |
-
os.system(
|
27 |
-
"readelf -d /home/user/.local/lib/python3.8/site-packages/_k2.cpython-38-x86_64-linux-gnu.so"
|
28 |
-
)
|
29 |
-
|
30 |
-
os.system(
|
31 |
-
"ldd /home/user/.local/lib/python3.8/site-packages/_sherpa.cpython-38-x86_64-linux-gnu.so"
|
32 |
-
)
|
33 |
-
|
34 |
os.system(
|
35 |
"cp -v /home/user/.local/lib/python3.8/site-packages/k2/lib/*.so /home/user/.local/lib/python3.8/site-packages/sherpa/lib/"
|
36 |
)
|
37 |
-
os.system("ldd /home/user/.local/lib/python3.8/site-packages/kaldifeat/lib/*.so")
|
38 |
-
os.system("ldd /home/user/.local/lib/python3.8/site-packages/k2/lib/*.so")
|
39 |
-
os.system("ldd /home/user/.local/lib/python3.8/site-packages/sherpa/lib/*.so")
|
40 |
-
os.system("readelf -d /home/user/.local/lib/python3.8/site-packages/sherpa/lib/*.so")
|
41 |
|
42 |
import k2
|
43 |
import sherpa
|
|
|
18 |
from functools import lru_cache
|
19 |
import os
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
os.system(
|
22 |
"cp -v /home/user/.local/lib/python3.8/site-packages/k2/lib/*.so /home/user/.local/lib/python3.8/site-packages/sherpa/lib/"
|
23 |
)
|
|
|
|
|
|
|
|
|
24 |
|
25 |
import k2
|
26 |
import sherpa
|