Skip to content

Commit

Permalink
adding READMEs for audio classifier and text embedder web demos
Browse files Browse the repository at this point in the history
  • Loading branch information
jenperson committed Feb 14, 2023
1 parent d91434e commit 11c569c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
18 changes: 18 additions & 0 deletions examples/audio_classifier/js/README.md
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)
16 changes: 16 additions & 0 deletions examples/text_embedder/js/README.md
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)

0 comments on commit 11c569c

Please sign in to comment.