Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,7 +40,7 @@ def get_most_recent_album_name(artist_name: str) -> str:
|
|
| 40 |
most_recent_album = albums['items'][0]
|
| 41 |
|
| 42 |
# Return the name of the most recent album
|
| 43 |
-
|
| 44 |
else:
|
| 45 |
return "No albums found for this artist."
|
| 46 |
else:
|
|
|
|
| 40 |
most_recent_album = albums['items'][0]
|
| 41 |
|
| 42 |
# Return the name of the most recent album
|
| 43 |
+
return f"The most recent album of {artist_name} is {most_recent_album['name']}"
|
| 44 |
else:
|
| 45 |
return "No albums found for this artist."
|
| 46 |
else:
|