Update app.py
Browse files
app.py
CHANGED
|
@@ -5,13 +5,6 @@ import gradio as gr
|
|
| 5 |
from urllib.parse import urlparse, parse_qs
|
| 6 |
|
| 7 |
|
| 8 |
-
#from dotenv import load_dotenv
|
| 9 |
-
#load_dotenv()
|
| 10 |
-
# client_id = os.getenv('SPOTIPY_CLIENT_ID')
|
| 11 |
-
# client_secret = os.getenv('SPOTIPY_CLIENT_SECRET')
|
| 12 |
-
# redirect_uri = os.getenv('SPOTIPY_REDIRECT_URI')
|
| 13 |
-
|
| 14 |
-
|
| 15 |
redirect_uri = "https://huggingface.co/sjw"
|
| 16 |
scope= ['user-library-read',
|
| 17 |
'user-read-playback-state',
|
|
@@ -59,6 +52,4 @@ with gr.Blocks() as demo:
|
|
| 59 |
|
| 60 |
link_button.click(spotify_auth, inputs=[client_id, client_secret], outputs=link_result)
|
| 61 |
auth_button.click(spotify_auth, inputs=[client_id, client_secret, link], outputs=auth_result)
|
| 62 |
-
|
| 63 |
-
|
| 64 |
demo.launch()
|
|
|
|
| 5 |
from urllib.parse import urlparse, parse_qs
|
| 6 |
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
redirect_uri = "https://huggingface.co/sjw"
|
| 9 |
scope= ['user-library-read',
|
| 10 |
'user-read-playback-state',
|
|
|
|
| 52 |
|
| 53 |
link_button.click(spotify_auth, inputs=[client_id, client_secret], outputs=link_result)
|
| 54 |
auth_button.click(spotify_auth, inputs=[client_id, client_secret, link], outputs=auth_result)
|
|
|
|
|
|
|
| 55 |
demo.launch()
|