rutsam commited on
Commit
45992f8
1 Parent(s): 3dce7ce

fix model location

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ subprocess.check_output("git clone https://huggingface.co/DigitalUmuganda/lingal
8
  shell=True)
9
 
10
  def generate_audio(text):
11
- text2speech = Text2Speech(train_config="config.yaml",model_file="train.total_count.best.pth")
12
  wav = text2speech(text)["wav"]
13
  sf.write("outfile.wav", wav.numpy(), text2speech.fs, "PCM_16")
14
  return "outfile.wav"
 
8
  shell=True)
9
 
10
  def generate_audio(text):
11
+ text2speech = Text2Speech(train_config="lingala_vits_tts/config.yaml",model_file="lingala_vits_tts/train.total_count.best.pth")
12
  wav = text2speech(text)["wav"]
13
  sf.write("outfile.wav", wav.numpy(), text2speech.fs, "PCM_16")
14
  return "outfile.wav"