saayedalam commited on
Commit
f66342a
·
verified ·
1 Parent(s): b863594

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -12,8 +12,8 @@ from Gradio_UI import GradioUI
12
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
13
 
14
  # Set your Spotify API credentials
15
- client_id = 'f4b7863fa1504190b0d49939fc31a05f'
16
- client_secret = 'db2c21e185404604a02a5b8d683a6c03'
17
 
18
  # Set up Spotify authentication
19
  client_credentials_manager = SpotifyClientCredentials(client_id=client_id, client_secret=client_secret)
@@ -40,9 +40,9 @@ def get_song_lyrics(artist_name: str) -> str:
40
  # Return the name of the most recent album
41
  return f"The most recent album of the {artist_name} is {most_recent_album['name']}"
42
  else:
43
- return "No albums found for this artist."
44
  else:
45
- return "Artist not found."
46
 
47
 
48
 
 
12
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
13
 
14
  # Set your Spotify API credentials
15
+ client_id = 'Spotify_Client_ID'
16
+ client_secret = 'Spotify_Client_Secret'
17
 
18
  # Set up Spotify authentication
19
  client_credentials_manager = SpotifyClientCredentials(client_id=client_id, client_secret=client_secret)
 
40
  # Return the name of the most recent album
41
  return f"The most recent album of the {artist_name} is {most_recent_album['name']}"
42
  else:
43
+ return f"No album found for {artist_name}"
44
  else:
45
+ return f"{artist_name} not found."
46
 
47
 
48