LinAlgError: SVD did not converge in Linear Least Squares

Hello Community!
I have got this weird looking LinAlgError and don’t know how to resolve it. The code ran properly on a Jupyter Notebook, but somehow fails on StreamLit. Can someone help me out?
Here is the code : DIamondPricePredictionStreamlit/app.py at main · vedanthv/DIamondPricePredictionStreamlit · GitHub
According to the streamlit error log the error is on line 60

Hi @vedanthv!

Welcome to the Streamlit community!! :partying_face: :tada: :partying_face: :partying_face: :partying_face: :partying_face:

Can you screen shot this error that your getting? have you deployed your app or is it running on your local machine?

Cheers,
Marisa