o-862-268-o commited on
Commit
12079a8
·
verified ·
1 Parent(s): 4669deb
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -15,12 +15,10 @@ from TTS.api import TTS
15
  os.environ["COQUI_TOS_AGREED"] = "1"
16
 
17
  gcPU = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
18
- print(gcPU)
19
 
20
  def func__vcTTS(*ip):
21
- # vc_tts = TTS(model_name=ip[0], progress_bar=True).to(gcPU)
22
- # op = torch.tensor(vc_tts.tts(text=ip[1],speaker_wav=ip[2],language='en')).numpy()
23
- # return 'vcTTS',(24000,op)
24
  try:
25
  vc_tts = TTS(model_name=ip[0], progress_bar=True).to(gcPU)
26
  op = torch.tensor(vc_tts.tts(text=ip[1],speaker_wav=ip[2],language='en')).numpy()
 
15
  os.environ["COQUI_TOS_AGREED"] = "1"
16
 
17
  gcPU = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
 
18
 
19
  def func__vcTTS(*ip):
20
+ print('[p] :: ... processing ...')
21
+ print(f"[logs] :: processing on '{gcPU}' device")
 
22
  try:
23
  vc_tts = TTS(model_name=ip[0], progress_bar=True).to(gcPU)
24
  op = torch.tensor(vc_tts.tts(text=ip[1],speaker_wav=ip[2],language='en')).numpy()