Plachta commited on
Commit
062bfd4
1 Parent(s): 65de980

Added unconditional generation

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -186,6 +186,7 @@ def infer_from_audio(text, language, accent, audio_prompt, record_audio_prompt,
186
  lang_pr = 'en'
187
  text_pr = ""
188
  enroll_x_lens = 0
 
189
  else:
190
  audio_prompt = audio_prompt if audio_prompt is not None else record_audio_prompt
191
  sr, wav_pr = audio_prompt
 
186
  lang_pr = 'en'
187
  text_pr = ""
188
  enroll_x_lens = 0
189
+ wav_pr, sr = None, None
190
  else:
191
  audio_prompt = audio_prompt if audio_prompt is not None else record_audio_prompt
192
  sr, wav_pr = audio_prompt