# Visible Watermarking with Gradio

[Hugging Face](https://yomu.fyi/company/hugging-face) · Margaret Mitchell · Sep 15, 2025

**Type:** Announcement

## Summary

Generative artificial intelligence tools produce images, video, audio, and text that have become increasingly difficult to distinguish from real-world media captures. To improve synthetic media transparency, Hugging Face introduced visible watermarking capabilities directly into the Gradio web application framework. Developers can now overlay visual watermarks on image and video outputs by specifying a single watermark parameter using file paths, open image objects, or NumPy arrays. The implementation also supports QR code watermarks, which can match the visual style of generated media while conveying detailed background information. Furthermore, the Gradio Chatbot component accepts a text watermark parameter that automatically attaches attribution metadata whenever users copy generated responses to their clipboards.

## Context

AI-generated images and videos have become realistic enough to be nearly indistinguishable from real camera footage, creating an urgent need for mechanisms that allow users to identify synthetic content.

## Approach / What changed

Hugging Face added a watermark parameter to Gradio components, enabling developers to overlay watermarks onto gr.Image and gr.Video outputs using filenames, open images, or NumPy arrays, as well as attach text attribution to gr.Chatbot copy actions.

## Takeaways

- Gradio components gr.Image and gr.Video support visible watermarking by accepting filenames, open image objects, or NumPy arrays through the watermark parameter.
- QR code watermarks can be embedded into visual outputs to provide detailed metadata while matching the visual style of the generated image or video.
- The gr.Chatbot component uses a text watermark parameter to automatically append attribution whenever users copy text from generated chatbot responses.

**Tags:** [LLMs](https://yomu.fyi/topic/llm), [Machine Learning](https://yomu.fyi/topic/machine-learning), [Open Source](https://yomu.fyi/topic/open-source), [Python](https://yomu.fyi/topic/python)

[Read original post](https://huggingface.co/blog/watermarking-with-gradio)
