Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 = '
|
| 16 |
-
client_secret = '
|
| 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
|
| 44 |
else:
|
| 45 |
-
return "
|
| 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 |
|