Streamlit geopy error


I’m trying to build a geocoder component in a streamlit app using mapbox geocoding api. Whenever I install geopy (==2.2.0), the following code works perfectly and returns the coordinates of the place provided. Here, API_KEY is my mapbox account api key.
from geopy.geocoders import MapBox
geocoder = MapBox(api_key=API_KEY)
output = geocoder.geocode(‘Lauteschlagerstr. 60, Darmstadt’, timeout=None)
lat, lng = output[1]
print(lat, lng)

But after installing streamlit(==1.12.2), the code fails and I get the following error. I understand that this is some issue with urllib3 and its compatibility with streamlit. Can anyone please guide?

Any update on this?