Hey @angelicaba23,
Can you try replacing cv2 with opencv-python-headless?
A quick sidenote here, the opencv package is known to create some issue when deploying on Streamlit sharing. To bypass this, replace opencv-python with opencv-python-headless.