Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -107,7 +107,9 @@ def shuffle_and_play(playlist_name: str):
|
|
107 |
|
108 |
with gr.Blocks() as demo:
|
109 |
gr.Markdown("### RNG Spotify Playlist Shuffler π§")
|
110 |
-
|
|
|
|
|
111 |
|
112 |
gr.Markdown("After logging in to Spotify, copy the **full redirected URL** and paste it below to complete login.")
|
113 |
redirect_url_box = gr.Textbox(label="Paste redirected URL here")
|
|
|
107 |
|
108 |
with gr.Blocks() as demo:
|
109 |
gr.Markdown("### RNG Spotify Playlist Shuffler π§")
|
110 |
+
|
111 |
+
login_url = get_auth_url()
|
112 |
+
login_btn = gr.HTML(f'<a href="{login_url}" target="_blank"><button style="width:100%; height:40px; font-size:16px;">π Login to Spotify</button></a>')
|
113 |
|
114 |
gr.Markdown("After logging in to Spotify, copy the **full redirected URL** and paste it below to complete login.")
|
115 |
redirect_url_box = gr.Textbox(label="Paste redirected URL here")
|