Raivis Dejus commited on
Commit
7970b69
1 Parent(s): 8981f17

Renaming model files

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +2 -2
README.md CHANGED
@@ -9,7 +9,7 @@ tags:
9
  - piper
10
  - latvian
11
  preload_from_hub:
12
- - RaivisDejus/Piper-lv_LV-Aivars-medium lv_LV-Aivars-medium.onnx,lv_LV-Aivars-medium.onnx.json
13
  sdk_version: 4.26.0
14
  app_file: app.py
15
  pinned: false
 
9
  - piper
10
  - latvian
11
  preload_from_hub:
12
+ - RaivisDejus/Piper-lv_LV-Aivars-medium lv_LV-aivars-medium.onnx,lv_LV-aivars-medium.onnx.json
13
  sdk_version: 4.26.0
14
  app_file: app.py
15
  pinned: false
app.py CHANGED
@@ -7,8 +7,8 @@ from piper import PiperVoice
7
 
8
 
9
  def synthesize_speech(text, sentence_silence, length_scale):
10
- model_path = hf_hub_download(repo_id="RaivisDejus/Piper-lv_LV-Aivars-medium", filename="lv_LV-Aivars-medium.onnx")
11
- config_path = hf_hub_download(repo_id="RaivisDejus/Piper-lv_LV-Aivars-medium", filename="lv_LV-Aivars-medium.onnx.json")
12
 
13
  voice = PiperVoice.load(model_path, config_path)
14
 
 
7
 
8
 
9
  def synthesize_speech(text, sentence_silence, length_scale):
10
+ model_path = hf_hub_download(repo_id="RaivisDejus/Piper-lv_LV-Aivars-medium", filename="lv_LV-aivars-medium.onnx")
11
+ config_path = hf_hub_download(repo_id="RaivisDejus/Piper-lv_LV-Aivars-medium", filename="lv_LV-aivars-medium.onnx.json")
12
 
13
  voice = PiperVoice.load(model_path, config_path)
14