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

Support bark for TTS #100

Merged
merged 5 commits into from
Aug 1, 2024
Merged

Support bark for TTS #100

merged 5 commits into from
Aug 1, 2024

Conversation

JingofXin
Copy link
Contributor

@JingofXin JingofXin commented Jul 29, 2024

  • sepport TTS model: bark
    image


def load_bark(self):
import torch
from transformers import AutoProcessor, BarkModel
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

21和22能否变成from thirdparty import

@@ -91,8 +92,13 @@ def init_web(self, component_descs):
value=(self.text_mode != WebModule.Mode.Refresh), label="追加输出")
components = []
for _, gname, name, ctype, value in component_descs:
if ctype in ('Checkbox', 'Text'):
components.append(getattr(gr, ctype)(interactive=True, value=value, label=f'{gname}.{name}'))
if ctype in ('Checkbox', 'Text', 'Dropdown'):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

加个

elif  ctype == 'Dropdown' 

而不是里面再套个if

@wzh1994 wzh1994 merged commit 2249571 into LazyAGI:main Aug 1, 2024
7 checks passed
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.

2 participants