SpawnDev.BlazorJS.TransformersJS
1.0.0-preview.1
dotnet add package SpawnDev.BlazorJS.TransformersJS --version 1.0.0-preview.1
NuGet\Install-Package SpawnDev.BlazorJS.TransformersJS -Version 1.0.0-preview.1
<PackageReference Include="SpawnDev.BlazorJS.TransformersJS" Version="1.0.0-preview.1" />
paket add SpawnDev.BlazorJS.TransformersJS --version 1.0.0-preview.1
#r "nuget: SpawnDev.BlazorJS.TransformersJS, 1.0.0-preview.1"
// Install SpawnDev.BlazorJS.TransformersJS as a Cake Addin #addin nuget:?package=SpawnDev.BlazorJS.TransformersJS&version=1.0.0-preview.1&prerelease // Install SpawnDev.BlazorJS.TransformersJS as a Cake Tool #tool nuget:?package=SpawnDev.BlazorJS.TransformersJS&version=1.0.0-preview.1&prerelease
SpawnDev.BlazorJS.TransformersJS
WIP
This project is a "Work In Progress" and is currently limited. If you are interested in this project, please start an issue to suggest features or areas of interest.
State-of-the-art Machine Learning for the Web in Blazor WebAssembly
SpawnDev.BlazorJS.TransformersJS brings the awesome Transformers.js library into Blazor WebAssembly apps.
Transformers.js is designed to be functionally equivalent to Hugging Face’s transformers python library, meaning you can run the same pretrained models using a very similar API. These models support common tasks in different modalities, such as:
- 📝 Natural Language Processing: text classification, named entity recognition, question answering, language modeling, summarization, translation, multiple choice, and text generation.
- 🖼️ Computer Vision: image classification, object detection, segmentation, and depth estimation.
- 🗣️ Audio: automatic speech recognition, audio classification, and text-to-speech.
- 🐙 Multimodal: embeddings, zero-shot audio classification, zero-shot image classification, and zero-shot object detection.
Transformers.js uses ONNX Runtime to run models in the browser. The best part about it, is that you can easily convert your pretrained PyTorch, TensorFlow, or JAX models to ONNX using 🤗 Optimum.
Demo
The current demo app uses Transformers.js, Blazor, and WebGL.
NOTE: The models used can be large. A fast connection is recommended.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net6.0
- Microsoft.AspNetCore.Components.WebAssembly (>= 6.0.25)
- SpawnDev.BlazorJS (>= 2.5.36)
- System.Text.Json (>= 6.0.11)
-
net7.0
- Microsoft.AspNetCore.Components.WebAssembly (>= 7.0.14)
- SpawnDev.BlazorJS (>= 2.5.36)
-
net8.0
- Microsoft.AspNetCore.Components.WebAssembly (>= 8.0.1)
- SpawnDev.BlazorJS (>= 2.5.36)
- System.Text.Json (>= 8.0.5)
-
net9.0
- Microsoft.AspNetCore.Components.WebAssembly (>= 9.0.0)
- SpawnDev.BlazorJS (>= 2.5.36)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0-preview.1 | 35 | 1/15/2025 |
1.0.0-preview.0 | 58 | 1/4/2025 |