Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -295,7 +295,7 @@ def run_exploration(selected_tracks_uris, selected_tracks_genres, playlist_lengt
|
|
295 |
reco = sp.recommendations(seed_tracks=[seed_songs[counter_seed]], market="from_token")['tracks']
|
296 |
assert len(reco) > 0
|
297 |
for r in reco:
|
298 |
-
if r['uri'] not in all_tracks_uris:
|
299 |
new_songs.append(r['uri'])
|
300 |
break
|
301 |
except:
|
|
|
295 |
reco = sp.recommendations(seed_tracks=[seed_songs[counter_seed]], market="from_token")['tracks']
|
296 |
assert len(reco) > 0
|
297 |
for r in reco:
|
298 |
+
if r['uri'] not in all_tracks_uris and r['uri'] not in new_songs:
|
299 |
new_songs.append(r['uri'])
|
300 |
break
|
301 |
except:
|