Spaces:
Sleeping
Sleeping
update
Browse files
main.py
CHANGED
|
@@ -150,11 +150,11 @@ def process(
|
|
| 150 |
|
| 151 |
# load_punctuation_model
|
| 152 |
if add_punctuation == "Yes":
|
| 153 |
-
|
| 154 |
-
local_model_dir = pretrained_model_dir / "huggingface" / md5_encrypt(
|
| 155 |
punctuation_model = nn_models.load_punctuation_model(
|
| 156 |
local_model_dir=local_model_dir,
|
| 157 |
-
repo_id=
|
| 158 |
nn_model_file="model.onnx",
|
| 159 |
nn_model_file_sub_folder=".",
|
| 160 |
)
|
|
|
|
| 150 |
|
| 151 |
# load_punctuation_model
|
| 152 |
if add_punctuation == "Yes":
|
| 153 |
+
punctuation_repo_id = "csukuangfj/sherpa-onnx-punct-ct-transformer-zh-en-vocab272727-2024-04-12"
|
| 154 |
+
local_model_dir = pretrained_model_dir / "huggingface" / md5_encrypt(punctuation_repo_id)
|
| 155 |
punctuation_model = nn_models.load_punctuation_model(
|
| 156 |
local_model_dir=local_model_dir,
|
| 157 |
+
repo_id=punctuation_repo_id,
|
| 158 |
nn_model_file="model.onnx",
|
| 159 |
nn_model_file_sub_folder=".",
|
| 160 |
)
|