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.

AllowNo policy violations or restricted content were found in the video. The kitchen knife shown is used for its standard purpose and is excluded from weapon tags.“The weather in Scunthorpe is lovely, so we walked to Penistone and back.”0:07
Adults onlyalcoholThe 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:08
Hold for reviewharassmentHarassment 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:07
  1. Read metadata
  2. Sample framesNeeds Read metadata.
  3. Speech to textNeeds Read metadata.
  4. Score nudityNeeds Sample frames.
  5. Apply policyNeeds Score nudity, Speech to text.
  6. Filter decisionsNeeds Apply policy.
  7. Review flagged clipsNeeds Filter decisions.
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.

Adapt this pipeline

A hosted run of this example requires an organization with Pipelines and LLM steps enabled.