juangtzi commited on
Commit
f9ef521
·
verified ·
1 Parent(s): ea70de0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -56,12 +56,13 @@ vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan")
56
 
57
  speaker_embeddings2 = np.load('speaker_embeddings.npy')
58
  speaker_embeddings2 = torch.tensor(speaker_embeddings2)
59
-
60
  lang_detector = pipeline("text-classification", model="papluca/xlm-roberta-base-language-detection")
61
 
62
  def language_detector(text):
63
  resultado = lang_detector(text)
64
  idioma_detectado = resultado[0]['label']
 
65
  return idioma_detectado
66
 
67
  def translate(audio):
 
56
 
57
  speaker_embeddings2 = np.load('speaker_embeddings.npy')
58
  speaker_embeddings2 = torch.tensor(speaker_embeddings2)
59
+ print(speaker_embeddings2)
60
  lang_detector = pipeline("text-classification", model="papluca/xlm-roberta-base-language-detection")
61
 
62
  def language_detector(text):
63
  resultado = lang_detector(text)
64
  idioma_detectado = resultado[0]['label']
65
+ print(idioma_detectado)
66
  return idioma_detectado
67
 
68
  def translate(audio):