Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -94,7 +94,7 @@ def play_preview_deezer(track: str, artist:str) -> str:
|
|
94 |
# Play the track
|
95 |
print("Playing preview: ", first_track['preview'])
|
96 |
set_audio_url(first_track['preview'])
|
97 |
-
return f'{first_track[
|
98 |
else:
|
99 |
raise ValueError("No tracks found.")
|
100 |
else:
|
|
|
94 |
# Play the track
|
95 |
print("Playing preview: ", first_track['preview'])
|
96 |
set_audio_url(first_track['preview'])
|
97 |
+
return f'{first_track["title"]} by {first_track["artist"]["name"]} is playing.'
|
98 |
else:
|
99 |
raise ValueError("No tracks found.")
|
100 |
else:
|