Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -156,11 +156,10 @@ def select_songs(legit_genres):
|
|
156 |
extract_button = centered_button(st.button, 'Extract music', n_columns=5)
|
157 |
|
158 |
all_tracks_uris, all_tracks_audio_features, all_tracks_genres, indexes_by_genre, genres_labels = [None] * 5
|
|
|
159 |
if extract_button or debug or 'extract_button' in st.session_state.keys():
|
160 |
if extract_button:
|
161 |
updated_sources = True
|
162 |
-
else:
|
163 |
-
updated_sources = False
|
164 |
st.session_state['extract_button'] = True
|
165 |
# check the user input music sources
|
166 |
if playlist_links == "" and users_links == "":
|
|
|
156 |
extract_button = centered_button(st.button, 'Extract music', n_columns=5)
|
157 |
|
158 |
all_tracks_uris, all_tracks_audio_features, all_tracks_genres, indexes_by_genre, genres_labels = [None] * 5
|
159 |
+
updated_sources = False
|
160 |
if extract_button or debug or 'extract_button' in st.session_state.keys():
|
161 |
if extract_button:
|
162 |
updated_sources = True
|
|
|
|
|
163 |
st.session_state['extract_button'] = True
|
164 |
# check the user input music sources
|
165 |
if playlist_links == "" and users_links == "":
|