forked from google-ai-edge/mediapipe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding READMEs for audio classifier and text embedder web demos
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# MediaPipe Text Classification task for web | ||
|
||
## Overview | ||
|
||
This web sample classifies audio into one of several classes. It uses the Yamnet model. | ||
|
||
The Yamnet model is an audio event classifier trained on the [AudioSet] dataset to predict audio events from the AudioSet ontology.(https://research.google.com/audioset/). | ||
|
||
## Prerequisites | ||
|
||
* A device that can access the web using Chrome, Firefox, or Safari | ||
* For iOS devices, iOS 16 or later | ||
|
||
## Running the demo | ||
|
||
The live demo and code are available in Codepen. | ||
|
||
[View the example on Codepen](https://codepen.io/mediapipe-preview/pen/wvxYYmy) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# MediaPipe Text Classification task for web | ||
|
||
## Overview | ||
|
||
This web sample runs text embedding on two text inputs, and then determines how alike they are using cosine similarity. Scores range from -1 to 1. More similar texts have a higher score, less similar a lower score. | ||
|
||
## Prerequisites | ||
|
||
* A device that can access the web using Chrome, Firefox, or Safari | ||
* For iOS devices, iOS 16 or later | ||
|
||
## Running the demo | ||
|
||
The live demo and code are available in Codepen. | ||
|
||
[View the example on Codepen](https://codepen.io/mediapipe-preview/pen/XWBVZmE) |