gorkemgoknar commited on
Commit
9102540
1 Parent(s): c8b76df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -196,6 +196,12 @@ def predict(prompt, language, audio_file_pth, mic_file_path, use_mic, voice_clea
196
  if "Failed to decode" in str(e):
197
  print("Speaker encoding error", str(e))
198
  gr.Warning("It appears something wrong with reference, did you unmute your microphone?")
 
 
 
 
 
 
199
 
200
  latent_calculation_time = time.time() - t_latent
201
  ##metrics_text=f"Embedding calculation time: {latent_calculation_time:.2f} seconds\n"
 
196
  if "Failed to decode" in str(e):
197
  print("Speaker encoding error", str(e))
198
  gr.Warning("It appears something wrong with reference, did you unmute your microphone?")
199
+ return (
200
+ None,
201
+ None,
202
+ None,
203
+ None,
204
+ )
205
 
206
  latent_calculation_time = time.time() - t_latent
207
  ##metrics_text=f"Embedding calculation time: {latent_calculation_time:.2f} seconds\n"