Spaces:
Sleeping
Sleeping
update
Browse files
main.py
CHANGED
@@ -93,10 +93,13 @@ def process(
|
|
93 |
out_filename = io.BytesIO()
|
94 |
audio_convert(in_filename, out_filename)
|
95 |
|
|
|
|
|
|
|
96 |
recognizer = models.load_recognizer(
|
97 |
repo_id=m_dict["repo_id"],
|
98 |
-
nn_model_file=
|
99 |
-
tokens_file=
|
100 |
sub_folder=m_dict["sub_folder"],
|
101 |
local_model_dir=local_model_dir,
|
102 |
recognizer_type=m_dict["recognizer_type"],
|
|
|
93 |
out_filename = io.BytesIO()
|
94 |
audio_convert(in_filename, out_filename)
|
95 |
|
96 |
+
nn_model_file = local_model_dir / m_dict["nn_model_file"]
|
97 |
+
tokens_file = local_model_dir / m_dict["tokens_file"]
|
98 |
+
|
99 |
recognizer = models.load_recognizer(
|
100 |
repo_id=m_dict["repo_id"],
|
101 |
+
nn_model_file=nn_model_file.as_posix(),
|
102 |
+
tokens_file=tokens_file.as_posix(),
|
103 |
sub_folder=m_dict["sub_folder"],
|
104 |
local_model_dir=local_model_dir,
|
105 |
recognizer_type=m_dict["recognizer_type"],
|