gyroing commited on
Commit
3b61a4e
1 Parent(s): 9e22b76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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-meduim.onnx")
18
- config_path = hf_hub_download(repo_id="gyroing/Persian-Piper-Model-gyro", filename="fa_IR-gyro-meduim.onnx.json")
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]]: