Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ def extract_track_id_from_url(url):
|
|
| 43 |
def app():
|
| 44 |
|
| 45 |
# Step 1: User Authorization
|
| 46 |
-
if st.session_state.get('code') is None or (st.session_state['access_token'] is None):
|
| 47 |
auth_params = {
|
| 48 |
'client_id': CLIENT_ID,
|
| 49 |
'response_type': 'code',
|
|
|
|
| 43 |
def app():
|
| 44 |
|
| 45 |
# Step 1: User Authorization
|
| 46 |
+
if st.session_state.get('code') is None or ('access_token' not in st.session_state or st.session_state['access_token'] is None):
|
| 47 |
auth_params = {
|
| 48 |
'client_id': CLIENT_ID,
|
| 49 |
'response_type': 'code',
|