crowbarmassage commited on
Commit
b50b8b5
1 Parent(s): 9f5329c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -79,11 +79,12 @@ def synthesise(text):
79
 
80
  # Convert the embedding to a PyTorch tensor and add a batch dimension
81
  #speaker_embeddings = torch.tensor(embedding_array).unsqueeze(0)
82
-
83
  inputs = processor_tts(text=text, return_tensors="pt")
84
  speech = model_tts.generate_speech(
85
  inputs["input_ids"], speaker_embeddings, vocoder=vocoder
86
  )
 
87
  return speech
88
 
89
  def speech_to_speech_translation(audio_filepath):
 
79
 
80
  # Convert the embedding to a PyTorch tensor and add a batch dimension
81
  #speaker_embeddings = torch.tensor(embedding_array).unsqueeze(0)
82
+ print(speaker_embeddings)
83
  inputs = processor_tts(text=text, return_tensors="pt")
84
  speech = model_tts.generate_speech(
85
  inputs["input_ids"], speaker_embeddings, vocoder=vocoder
86
  )
87
+ print(speech)
88
  return speech
89
 
90
  def speech_to_speech_translation(audio_filepath):