Hi,
Yes the code for the widgets is open-source (and part of the huggingface_hub library), you can view the code of the conversational widget here: huggingface_hub/ConversationalWidget.svelte at main · huggingface/huggingface_hub · GitHub 6