Add a watermark
parameter to gr.Chatbot
that is added to copied text
#10756
Labels
enhancement
New feature or request
When a user copies the text generated by the LLM, this triggers the event ChatBot.copy, which is great. But the listener only gives you the copied text, and does not let you modify it.
In order to comply with the EU AI Act, chatbots should give a kind of watermark on generated content. For text, a simple "Generated by AI" somewhere in the text is enough.
I tried something like this:
But this changes the text on the chatbot dialogue itself, and not the text being sent to the clipboard, making me believe that Chatbox.copy happens after the copy has happened, or I am clearly doing something silly and I couldn't understand the documentation (which is pretty difficult on the event listeners part).
Any hints are welcome, and an example on the documentation would be super useful (as everyone needs to do that in the EU now).
The text was updated successfully, but these errors were encountered: