jisaacso219 commited on
Commit
e5d28ac
Β·
verified Β·
1 Parent(s): 3582f7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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
- login_btn = gr.Button("πŸ” Login to Spotify", link=get_auth_url(), target="_blank")
 
 
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")