gorkemgoknar commited on
Commit
d1584df
1 Parent(s): 9b0d4aa

diffusion dropped

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -290,10 +290,9 @@ def get_latents(speaker_wav,voice_cleanup=False):
290
  # create as function as we can populate here with voice cleanup/filtering
291
  (
292
  gpt_cond_latent,
293
- diffusion_conditioning,
294
  speaker_embedding,
295
  ) = model.get_conditioning_latents(audio_path=speaker_wav)
296
- return gpt_cond_latent, diffusion_conditioning, speaker_embedding
297
 
298
  def wave_header_chunk(frame_input=b"", channels=1, sample_width=2, sample_rate=24000):
299
  # This will create a wave header then append the frame input
@@ -337,7 +336,7 @@ def detect_language(prompt):
337
  return language
338
 
339
  def get_voice_streaming(prompt, language, latent_tuple, suffix="0"):
340
- gpt_cond_latent, diffusion_conditioning, speaker_embedding = latent_tuple
341
 
342
  try:
343
  t0 = time.time()
 
290
  # create as function as we can populate here with voice cleanup/filtering
291
  (
292
  gpt_cond_latent,
 
293
  speaker_embedding,
294
  ) = model.get_conditioning_latents(audio_path=speaker_wav)
295
+ return gpt_cond_latent, speaker_embedding
296
 
297
  def wave_header_chunk(frame_input=b"", channels=1, sample_width=2, sample_rate=24000):
298
  # This will create a wave header then append the frame input
 
336
  return language
337
 
338
  def get_voice_streaming(prompt, language, latent_tuple, suffix="0"):
339
+ gpt_cond_latent, speaker_embedding = latent_tuple
340
 
341
  try:
342
  t0 = time.time()