Ailyth commited on
Commit
eb49c8e
β€’
1 Parent(s): 2fd0f46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -726,7 +726,7 @@ def clone_voice(user_voice,user_text,user_lang):
726
  sovits_path = abs_path("pretrained_models/s2G488k.pth")
727
  #tprint(f'Model loaded:{sovits_path}')
728
  try:
729
- prompt_text, prompt_lang = transcribe(user_voice)
730
  except UnboundLocalError as e:
731
  wprint(f"The language in the audio cannot be recognized :{str(e)}")
732
  return None
 
726
  sovits_path = abs_path("pretrained_models/s2G488k.pth")
727
  #tprint(f'Model loaded:{sovits_path}')
728
  try:
729
+ prompt_text, prompt_language = transcribe(user_voice)
730
  except UnboundLocalError as e:
731
  wprint(f"The language in the audio cannot be recognized :{str(e)}")
732
  return None