Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -14,8 +14,8 @@ word_tokenizer = hazm.WordTokenizer()
|
|
14 |
|
15 |
tagger_path = hf_hub_download(repo_id="gyroing/HAZM_POS_TAGGER", filename="pos_tagger.model")
|
16 |
tagger = hazm.POSTagger(model=tagger_path)
|
17 |
-
model_path = hf_hub_download(repo_id="gyroing/Persian-Piper-Model-gyro", filename="fa_IR-gyro-
|
18 |
-
config_path = hf_hub_download(repo_id="gyroing/Persian-Piper-Model-gyro", filename="fa_IR-gyro-
|
19 |
voice = PiperVoice.load(model_path, config_path)
|
20 |
|
21 |
def preprocess_text(text: str) -> typing.List[typing.List[str]]:
|
|
|
14 |
|
15 |
tagger_path = hf_hub_download(repo_id="gyroing/HAZM_POS_TAGGER", filename="pos_tagger.model")
|
16 |
tagger = hazm.POSTagger(model=tagger_path)
|
17 |
+
model_path = hf_hub_download(repo_id="gyroing/Persian-Piper-Model-gyro", filename="fa_IR-gyro-medium.onnx")
|
18 |
+
config_path = hf_hub_download(repo_id="gyroing/Persian-Piper-Model-gyro", filename="fa_IR-gyro-medium.onnx.json")
|
19 |
voice = PiperVoice.load(model_path, config_path)
|
20 |
|
21 |
def preprocess_text(text: str) -> typing.List[typing.List[str]]:
|