-
Notifications
You must be signed in to change notification settings - Fork 432
add vui code snippet #1522
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
add vui code snippet #1522
Changes from all commits
970b1d4
bce3d39
ee969b3
56bb348
2d98317
66c047e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1354,6 +1354,24 @@ export const voicecraft = (model: ModelData): string[] => [ | |
model = VoiceCraft.from_pretrained("${model.id}")`, | ||
]; | ||
|
||
export const vui = (model: ModelData): string[] => [ | ||
`# !pip install git+https://github.com/fluxions-ai/vui | ||
|
||
import torchaudio | ||
|
||
from vui.inference import render | ||
from vui.model import Vui, | ||
|
||
model = Vui.from_pretrained().cuda() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. typically here if repo is split in several models, we could have a better |
||
waveform = render( | ||
model, | ||
"Hey, here is some random stuff, usually something quite long as the shorter the text the less likely the model can cope!", | ||
) | ||
print(waveform.shape) | ||
torchaudio.save("out.opus", waveform[0], 22050) | ||
`, | ||
]; | ||
|
||
export const chattts = (): string[] => [ | ||
`import ChatTTS | ||
import torchaudio | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1063,6 +1063,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = { | |
docsUrl: "https://github.com/jasonppy/VoiceCraft", | ||
snippets: snippets.voicecraft, | ||
}, | ||
vui: { | ||
prettyLabel: "Vui", | ||
repoName: "Vui", | ||
repoUrl: "https://github.com/vui-ai/vui", | ||
countDownloads: `path_extension:"pt"`, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would be really good to nudge them to split their repo into several ones (better to track downloads on individual models). (highly recommended but not an obligation) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, i am pushing for it! |
||
snippets: snippets.vui, | ||
}, | ||
wham: { | ||
prettyLabel: "WHAM", | ||
repoName: "wham", | ||
|
Uh oh!
There was an error while loading. Please reload this page.