Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

various fixes #91

Merged
merged 2 commits into from
Dec 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def extract_custom_model(f_path, dest_dir, session):

def check_model_files(model_dir):
existing_files = ['config.json', 'model.pth', 'vocab.json', 'ref.wav']
missing_files = [file for file in listdir(model_dir) if not file in existing_files]
missing_files = [file for file in os.listdir(model_dir) if not file in existing_files]
if missing_files:
return False
return model_dir
Expand Down Expand Up @@ -442,7 +442,7 @@ def convert_chapters_to_audio(session):
params['tts'] = Xtts.init_from_config(config)
params['tts'].load_checkpoint(config, checkpoint_path=model_path, vocab_path=vocab_path, eval=True)
print('Computing speaker latents...')
params['voice_file'] = voice_path
params['voice_file'] = session['voice_file'] if session['voice_file'] is not None else voice_path
params['gpt_cond_latent'], params['speaker_embedding'] = params['tts'].get_conditioning_latents(audio_path=[params['voice_file']])
else:
params['tts'] = XTTS(models[params['tts_model']][session['fine_tuned']]['repo'])
Expand Down Expand Up @@ -1054,10 +1054,10 @@ def web_interface(args):
padding: 0 !important;
margin: 0 !important;
}
#component-7, #component-19, #component-21 {
#component-7, #component-19, #component-22 {
height: 140px !important;
}
#component-44 {
#component-46 {
height: 100px !important;
}
</style>
Expand Down