Spaces:
Runtime error
Runtime error
Harveenchadha
commited on
Commit
•
316fec1
1
Parent(s):
d6363d7
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ os.system('rm glow.zip')
|
|
23 |
os.system('rm hifi.zip')
|
24 |
|
25 |
|
26 |
-
os.chdir('/home/
|
27 |
|
28 |
from tts_infer.tts import TextToMel, MelToWav
|
29 |
from tts_infer.transliterate import XlitEngine
|
@@ -33,8 +33,8 @@ import re
|
|
33 |
from scipy.io.wavfile import write
|
34 |
device = 'cpu'
|
35 |
|
36 |
-
text_to_mel = TextToMel(glow_model_dir='/
|
37 |
-
mel_to_wav = MelToWav(hifi_model_dir='/
|
38 |
|
39 |
def translit(text, lang):
|
40 |
reg = re.compile(r'[a-zA-Z]')
|
|
|
23 |
os.system('rm hifi.zip')
|
24 |
|
25 |
|
26 |
+
os.chdir('/home/user/app/vakyansh-tts')
|
27 |
|
28 |
from tts_infer.tts import TextToMel, MelToWav
|
29 |
from tts_infer.transliterate import XlitEngine
|
|
|
33 |
from scipy.io.wavfile import write
|
34 |
device = 'cpu'
|
35 |
|
36 |
+
text_to_mel = TextToMel(glow_model_dir='/home/user/app/vakyansh-tts/tts_infer/translit_models/hindi/glow_ckp', device=device)
|
37 |
+
mel_to_wav = MelToWav(hifi_model_dir='/home/user/app/vakyansh-tts/tts_infer/translit_models/hindi/hifi_ckp', device=device)
|
38 |
|
39 |
def translit(text, lang):
|
40 |
reg = re.compile(r'[a-zA-Z]')
|