Webrtc camera with streamlit is slow

Hiya there,

I’ve deployed a web app that uses Streamlit and uses computer vision-- I’ve noticed the regular web cam loads fine, but once I implement all my CV code, the web camera becomes more slower and laggier. I’m using streamlit-webrtc for the web cam, and deployed it through hugging face: Workout Wizard - a Hugging Face Space by fatimahhussain

Any help’s appreciated!!