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

优化infer_webui代码,支持上传多个主参考音频快捷切换 #1838

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

Cosmo-klara
Copy link

优化infer_webui代码

优化代码可读性,将 infer 里面切分方式改成和 fast infer 一样直接 get_method 调用,删去冗余代码

支持上传多个主参考音频快捷切换

没有太大的变更,稍微统一了一下两个推理页面的风格,加了个多个参考音频上传的功能,效果如下图:

fast

@Cosmo-klara Cosmo-klara mentioned this pull request Dec 11, 2024
gr.File()里面用file.name拿到的是文件路径(源码里面可以看到),需要套一个 os.path.basename()来获取文件名
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant