Spaces:
Running
on
A10G
Running
on
A10G
Added unconditional generation
Browse files
app.py
CHANGED
@@ -184,6 +184,7 @@ def infer_from_audio(text, language, accent, audio_prompt, record_audio_prompt,
|
|
184 |
audio_prompts = torch.zeros([1, 0, NUM_QUANTIZERS]).type(torch.int32).to(device)
|
185 |
text_prompts = torch.zeros([1, 0]).type(torch.int32)
|
186 |
lang_pr = language if language != 'mix' else 'en'
|
|
|
187 |
else:
|
188 |
audio_prompt = audio_prompt if audio_prompt is not None else record_audio_prompt
|
189 |
sr, wav_pr = audio_prompt
|
|
|
184 |
audio_prompts = torch.zeros([1, 0, NUM_QUANTIZERS]).type(torch.int32).to(device)
|
185 |
text_prompts = torch.zeros([1, 0]).type(torch.int32)
|
186 |
lang_pr = language if language != 'mix' else 'en'
|
187 |
+
enroll_x_lens = 0
|
188 |
else:
|
189 |
audio_prompt = audio_prompt if audio_prompt is not None else record_audio_prompt
|
190 |
sr, wav_pr = audio_prompt
|