Skip to content

Commit 4e4ca9c

Browse files
authored
Merge branch 'main' into feat/wavespeedai
2 parents 98465e2 + dc3b086 commit 4e4ca9c

File tree

5 files changed

+42
-3
lines changed

5 files changed

+42
-3
lines changed

packages/tasks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@huggingface/tasks",
33
"packageManager": "[email protected]",
4-
"version": "0.19.13",
4+
"version": "0.19.15",
55
"description": "List of ML tasks for huggingface.co/tasks",
66
"repository": "https://github.com/huggingface/huggingface.js.git",
77
"publishConfig": {

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

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

1357+
export const vui = (model: ModelData): string[] => [
1358+
`# !pip install git+https://github.com/fluxions-ai/vui
1359+
1360+
import torchaudio
1361+
1362+
from vui.inference import render
1363+
from vui.model import Vui,
1364+
1365+
model = Vui.from_pretrained().cuda()
1366+
waveform = render(
1367+
model,
1368+
"Hey, here is some random stuff, usually something quite long as the shorter the text the less likely the model can cope!",
1369+
)
1370+
print(waveform.shape)
1371+
torchaudio.save("out.opus", waveform[0], 22050)
1372+
`,
1373+
];
1374+
13571375
export const chattts = (): string[] => [
13581376
`import ChatTTS
13591377
import torchaudio

packages/tasks/src/model-libraries.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
513513
repoUrl: "https://github.com/webis-de/lightning-ir",
514514
snippets: snippets.lightning_ir,
515515
},
516+
"litert-lm": {
517+
prettyLabel: "LiteRT-LM",
518+
repoName: "LiteRT-LM",
519+
repoUrl: "https://github.com/google-ai-edge/LiteRT-LM",
520+
filter: false,
521+
countDownloads: `path_extension:"litertlm"`,
522+
},
516523
liveportrait: {
517524
prettyLabel: "LivePortrait",
518525
repoName: "LivePortrait",
@@ -799,6 +806,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
799806
filter: false,
800807
countDownloads: `path_extension:"pt2" OR path_extension:"pth" OR path_extension:"onnx"`,
801808
},
809+
seedvr: {
810+
prettyLabel: "SeedVR",
811+
repoName: "SeedVR",
812+
repoUrl: "https://github.com/ByteDance-Seed/SeedVR",
813+
filter: false,
814+
countDownloads: `path_extension:"pth"`,
815+
},
802816
"sentence-transformers": {
803817
prettyLabel: "sentence-transformers",
804818
repoName: "sentence-transformers",
@@ -1049,6 +1063,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
10491063
docsUrl: "https://github.com/jasonppy/VoiceCraft",
10501064
snippets: snippets.voicecraft,
10511065
},
1066+
vui: {
1067+
prettyLabel: "Vui",
1068+
repoName: "Vui",
1069+
repoUrl: "https://github.com/vui-ai/vui",
1070+
countDownloads: `path_extension:"pt"`,
1071+
snippets: snippets.vui,
1072+
},
10521073
wham: {
10531074
prettyLabel: "WHAM",
10541075
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)