I had some trouble setting up a streamlit app for annotation of data but then I finally arrived at something I’m pretty happy with. I thought I could share a template as I think it would be easy to adapt it to custom needs.
The app is deployed here: https://share.streamlit.io/muskedunder/streamlit-annotator/main/annotator.py
Code is here: GitHub - muskedunder/streamlit-annotator
And I made a blog post about it here: Template for data annotation with streamlit