Spaces:
Sleeping
Sleeping
update
Browse files
main.py
CHANGED
@@ -103,16 +103,10 @@ def process(
|
|
103 |
local_model_dir = pretrained_model_dir / "huggingface" / repo_id
|
104 |
|
105 |
recognizer = nn_models.load_recognizer(
|
106 |
-
repo_id=m_dict["repo_id"],
|
107 |
-
nn_model_file=m_dict["nn_model_file"],
|
108 |
-
nn_model_file_sub_folder=m_dict["nn_model_file_sub_folder"],
|
109 |
-
tokens_file=m_dict["tokens_file"],
|
110 |
-
tokens_file_sub_folder=m_dict["tokens_file_sub_folder"],
|
111 |
local_model_dir=local_model_dir,
|
112 |
-
loader=m_dict["loader"],
|
113 |
decoding_method=decoding_method,
|
114 |
num_active_paths=num_active_paths,
|
115 |
-
|
116 |
)
|
117 |
|
118 |
# transcribe
|
|
|
103 |
local_model_dir = pretrained_model_dir / "huggingface" / repo_id
|
104 |
|
105 |
recognizer = nn_models.load_recognizer(
|
|
|
|
|
|
|
|
|
|
|
106 |
local_model_dir=local_model_dir,
|
|
|
107 |
decoding_method=decoding_method,
|
108 |
num_active_paths=num_active_paths,
|
109 |
+
**m_dict
|
110 |
)
|
111 |
|
112 |
# transcribe
|