gorkemgoknar commited on
Commit
87e31f9
·
1 Parent(s): a166963

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -173,8 +173,11 @@ def predict(prompt, language, audio_file_pth, mic_file_path, use_mic, voice_clea
173
 
174
 
175
  try:
176
- t_latent=time.time()
 
 
177
  gpt_cond_latent, _, speaker_embedding = model.get_conditioning_latents(audio_path=speaker_wav)
 
178
  latent_calculation_time = time.time() - t_latent
179
  ##metrics_text=f"Embedding calculation time: {latent_calculation_time:.2f} seconds\n"
180
 
 
173
 
174
 
175
  try:
176
+
177
+ t_latent=time.time()
178
+
179
  gpt_cond_latent, _, speaker_embedding = model.get_conditioning_latents(audio_path=speaker_wav)
180
+
181
  latent_calculation_time = time.time() - t_latent
182
  ##metrics_text=f"Embedding calculation time: {latent_calculation_time:.2f} seconds\n"
183