Fix gradio Path serialize error

This commit is contained in:
litagin02
2024-05-19 18:31:45 +09:00
parent 0a3b57528b
commit 053a6bf785
2 changed files with 7 additions and 3 deletions

View File

@@ -260,7 +260,9 @@ def create_inference_app(model_holder: TTSModelHolder) -> gr.Blocks:
)
return app
initial_id = 0
initial_pth_files = model_holder.model_files_dict[model_names[initial_id]]
initial_pth_files = [
str(f) for f in model_holder.model_files_dict[model_names[initial_id]]
]
with gr.Blocks(theme=GRADIO_THEME) as app:
gr.Markdown(initial_md)