A song recommendation app +ways to integrate with Spotify API?

Hello, Streamlit community!

I have built a song recommender app that takes a song’s mood and generates a playlist. You can try it out here: GitHub - fm1320/song-vibe: AI song recommendations based on the feel of a song

However, I wanted to integrate it using the Spotify API but when I get the OAuth token I get some errors. The idea is that a pop-up is created and a user can log in with their Spotify account and have the playlist on Spotify.

Any ideas and contributions are welcome, and if you like the repo please star!
Thank you.