How to Lock Chrome Version on Streamlit Cloud

Hi, I’m looking to deploy an app on Streamlit Cloud and I’m facing some issues.

Context: My app is working perfectly locally. The app uses Selenium to scrape a site. The first problem occurred because I needed to install the necessary programs on the virtual machine, but now the app gives a version error between the installed Chrome and the supported ChromeDriver. How do I lock the installed version on Debian in Streamlit?

Here’s the error:

SessionNotCreatedException: Message: session not created: This version of
ChromeDriver only supports Chrome version 120
Current browser version is 126.0.6478.126 with binary path
/usr/bin/google-chrome