Spaces:
Runtime error
Runtime error
fix model location
Browse files
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"
|