Skip to content

Commit 003cb98

Browse files
authored
Merge branch 'main' into add-contexttab
2 parents 8049ece + dc3b086 commit 003cb98

File tree

4 files changed

+27
-2
lines changed

4 files changed

+27
-2
lines changed

packages/tasks/src/model-libraries-snippets.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,6 +1409,24 @@ export const voicecraft = (model: ModelData): string[] => [
14091409
model = VoiceCraft.from_pretrained("${model.id}")`,
14101410
];
14111411

1412+
export const vui = (model: ModelData): string[] => [
1413+
`# !pip install git+https://github.com/fluxions-ai/vui
1414+
1415+
import torchaudio
1416+
1417+
from vui.inference import render
1418+
from vui.model import Vui,
1419+
1420+
model = Vui.from_pretrained().cuda()
1421+
waveform = render(
1422+
model,
1423+
"Hey, here is some random stuff, usually something quite long as the shorter the text the less likely the model can cope!",
1424+
)
1425+
print(waveform.shape)
1426+
torchaudio.save("out.opus", waveform[0], 22050)
1427+
`,
1428+
];
1429+
14121430
export const chattts = (): string[] => [
14131431
`import ChatTTS
14141432
import torchaudio

packages/tasks/src/model-libraries.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,6 +1070,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
10701070
docsUrl: "https://github.com/jasonppy/VoiceCraft",
10711071
snippets: snippets.voicecraft,
10721072
},
1073+
vui: {
1074+
prettyLabel: "Vui",
1075+
repoName: "Vui",
1076+
repoUrl: "https://github.com/vui-ai/vui",
1077+
countDownloads: `path_extension:"pt"`,
1078+
snippets: snippets.vui,
1079+
},
10731080
wham: {
10741081
prettyLabel: "WHAM",
10751082
repoName: "wham",

packages/tasks/src/tasks/placeholder/spec/output.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"properties": {
1010
"meaningful_output_name": {
1111
"type": "string",
12-
"description": "TODO: Describe what is outputed by the inference here"
12+
"description": "TODO: Describe what is outputted by the inference here"
1313
}
1414
},
1515
"required": ["meaningfulOutputName"]

packages/tasks/src/tasks/reinforcement-learning/about.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Observations and states are the information our agent gets from the environment.
4848

4949
Inference in reinforcement learning differs from other modalities, in which there's a model and test data. In reinforcement learning, once you have trained an agent in an environment, you try to run the trained agent for additional steps to get the average reward.
5050

51-
A typical training cycle consists of gathering experience from the environment, training the agent, and running the agent on a test environment to obtain average reward. Below there's a snippet on how you can interact with the environment using the `gymnasium` library, train an agent using `stable-baselines3`, evalute the agent on test environment and infer actions from the trained agent.
51+
A typical training cycle consists of gathering experience from the environment, training the agent, and running the agent on a test environment to obtain average reward. Below there's a snippet on how you can interact with the environment using the `gymnasium` library, train an agent using `stable-baselines3`, evaluate the agent on test environment and infer actions from the trained agent.
5252

5353
```python
5454
# Here we are running 20 episodes of CartPole-v1 environment, taking random actions

0 commit comments

Comments
 (0)