RSI on python not matching.

Hi, I have a short python code that takes RSI value from Binance API print it and tade based on it. the issue is that I have compared the RSI value to TradingView with the same settings and the same values and the results are different.

you may need to find out how RSI is calcuated on tradingview?