Spaces:
Runtime error
Runtime error
Harveenchadha
commited on
Commit
•
88fa597
1
Parent(s):
67eacd3
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ from vakyansh_tts.tts_infer.num_to_word_on_sent import normalize_nums
|
|
48 |
|
49 |
import re
|
50 |
from scipy.io.wavfile import write
|
51 |
-
device = '
|
52 |
|
53 |
text_to_mel_f = TextToMel(glow_model_dir='/home/user/app/vakyansh_tts/tts_infer/translit_models/hindi/glow_ckp', device=device)
|
54 |
mel_to_wav_f = MelToWav(hifi_model_dir='/home/user/app/vakyansh_tts/tts_infer/translit_models/hindi/hifi_ckp', device=device)
|
@@ -78,7 +78,7 @@ def run_tts(text, gender):
|
|
78 |
#write(filename='temp.wav', rate=sr, data=audio) # for saving wav file, if needed
|
79 |
return (sr, audio)
|
80 |
|
81 |
-
_, audio = run_tts('hello my name is harveen')
|
82 |
|
83 |
|
84 |
textbox = gr.inputs.Textbox(
|
|
|
48 |
|
49 |
import re
|
50 |
from scipy.io.wavfile import write
|
51 |
+
device = 'cpu'
|
52 |
|
53 |
text_to_mel_f = TextToMel(glow_model_dir='/home/user/app/vakyansh_tts/tts_infer/translit_models/hindi/glow_ckp', device=device)
|
54 |
mel_to_wav_f = MelToWav(hifi_model_dir='/home/user/app/vakyansh_tts/tts_infer/translit_models/hindi/hifi_ckp', device=device)
|
|
|
78 |
#write(filename='temp.wav', rate=sr, data=audio) # for saving wav file, if needed
|
79 |
return (sr, audio)
|
80 |
|
81 |
+
#_, audio = run_tts('hello my name is harveen')
|
82 |
|
83 |
|
84 |
textbox = gr.inputs.Textbox(
|