Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
machineuser
commited on
Commit
·
7fd9bbe
1
Parent(s):
92e8b1a
Sync widgets demo
Browse files
packages/tasks/src/library-ui-elements.ts
CHANGED
|
@@ -541,6 +541,14 @@ transcriptions = asr_model.transcribe(["file.wav"])`,
|
|
| 541 |
|
| 542 |
const mlAgents = (model: ModelData) => [`mlagents-load-from-hf --repo-id="${model.id}" --local-dir="./downloads"`];
|
| 543 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 544 |
const mlx = (model: ModelData) => [
|
| 545 |
`pip install huggingface_hub hf_transfer
|
| 546 |
|
|
@@ -774,6 +782,12 @@ export const MODEL_LIBRARIES_UI_ELEMENTS: Partial<Record<ModelLibraryKey, Librar
|
|
| 774 |
docsUrl: "https://huggingface.co/docs/hub/ml-agents",
|
| 775 |
snippets: mlAgents,
|
| 776 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 777 |
pythae: {
|
| 778 |
btnLabel: "pythae",
|
| 779 |
repoName: "pythae",
|
|
|
|
| 541 |
|
| 542 |
const mlAgents = (model: ModelData) => [`mlagents-load-from-hf --repo-id="${model.id}" --local-dir="./downloads"`];
|
| 543 |
|
| 544 |
+
const sentis = (model: ModelData) => [
|
| 545 |
+
`string modelName = "[Your model name here].sentis";
|
| 546 |
+
Model model = ModelLoader.Load(Application.streamingAssetsPath + "/" + modelName);
|
| 547 |
+
IWorker engine = WorkerFactory.CreateWorker(BackendType.GPUCompute, model);
|
| 548 |
+
// Please see provided C# file for more details
|
| 549 |
+
`
|
| 550 |
+
];
|
| 551 |
+
|
| 552 |
const mlx = (model: ModelData) => [
|
| 553 |
`pip install huggingface_hub hf_transfer
|
| 554 |
|
|
|
|
| 782 |
docsUrl: "https://huggingface.co/docs/hub/ml-agents",
|
| 783 |
snippets: mlAgents,
|
| 784 |
},
|
| 785 |
+
"unity-sentis": {
|
| 786 |
+
btnLabel: "unity-sentis",
|
| 787 |
+
repoName: "unity-sentis",
|
| 788 |
+
repoUrl: "https://github.com/Unity-Technologies/sentis-samples",
|
| 789 |
+
snippets: sentis,
|
| 790 |
+
},
|
| 791 |
pythae: {
|
| 792 |
btnLabel: "pythae",
|
| 793 |
repoName: "pythae",
|