thanks for your .It is really helpful,but another error is coming
StreamlitAPIException: To use Custom Components in Streamlit, you need to install PyArrow. Unfortunately, PyArrow does not yet support Python 3.9.
You can either switch to Python 3.8 with an environment manager like PyEnv, or stay on 3.9 by installing Streamlit with conda:
conda install -c conda-forge streamlit
Actually,I’m running my project in an environment called myvre,can you please help me to change the python version in myvre from 3.9 to 3.8