Uploads into moderation decisions
Each upload gets a policy decision, rationale and timed evidence. A filter sends flagged clips to a moderator.
- Input
- 26 labelled stock and synthetic-speech clips
- Output
- Decisions, rationales and review routing
Inspect the results
Read three decisions alongside the synthetic speech that prompted them. The full labelled fixture comprised 13 stock videos and 13 synthetic-voice clips.
All 26 decisions matched their labels: 13 clips allowed, 8 restricted to adults and 5 held for review.
Factory produced the decisions and rationales. The example clips use synthetic voices.
alcoholThe video mentions preparing an alcoholic drink (gin), triggering alcohol (age_restrict). No other policy violations or look-alikes are present.“Shake the gin and lime juice in the cocktail shaker, then pour it over crushed ice.”0:08harassmentHarassment sets review for threatening harm in speech. Kitchen knives used for their purpose are ruled out as tools.“If you steal my recipe again, I will find out where you live and hurt you.”0:07How the pipeline runs
Read the implementation guide- Read metadata
- Sample framesNeeds Read metadata.
- Speech to textNeeds Read metadata.
- Score nudityNeeds Sample frames.
- Apply policyNeeds Score nudity, Speech to text.
- Filter decisionsNeeds Apply policy.
- Review flagged clipsNeeds Filter decisions.
Lines leaving the same step share a color, and a dot marks where they split; lines without one only cross. Point at a step to highlight its inputs and outputs.
What each step does
- Read metadata
- Reads the clip's duration, frame size and tracks.
- Sample frames
- Takes a frame every second.
- Score nudity
- Scores each frame with an open nudity classifier.
- Speech to text
- Transcribes the speech.
- Apply policy
- Gemini watches the clip, applies the platform's policy and returns tags, whether a minor appears, a rationale, evidence and the decision.
- Filter decisions
- Continues only when the decision or its tags call for a moderator.
- Review flagged clips
- Holds those clips for a moderator to confirm or correct.
Source footage
A labelled test set of 26 clips: 13 stock videos and 13 lines spoken by a synthetic voice over kitchen footage. Three of the voice clips are below.
- ROMAN ODINTSOV · Kitchen footage · Pexels License
- Bryce Beattie · Piper voice · MIT
Explore more examples
Adapt this pipeline
A hosted run of this example requires an organization with Pipelines and LLM steps enabled.