Liphos commited on
Commit
753704b
·
verified ·
1 Parent(s): 3390430

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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['title']} by {first_track['artist']['name']} is playing.'
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: