Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,12 +26,12 @@ genius.excluded_terms = ["(Remix)", "(Live)"]
|
|
| 26 |
|
| 27 |
@tool
|
| 28 |
def get_song_lyrics(song_name: str, artist_name: str) -> str:
|
| 29 |
-
|
| 30 |
Args:
|
| 31 |
song_name: A string representing a valid name of a song.
|
| 32 |
artist_name: A string representing a valid name of a song.
|
| 33 |
"""
|
| 34 |
-
|
| 35 |
try:
|
| 36 |
# Search for the song by title and artist
|
| 37 |
song = genius.search_song(song_name, artist_name)
|
|
|
|
| 26 |
|
| 27 |
@tool
|
| 28 |
def get_song_lyrics(song_name: str, artist_name: str) -> str:
|
| 29 |
+
"""A tool that fetches lyrics from Genius based on the song title and artist name.
|
| 30 |
Args:
|
| 31 |
song_name: A string representing a valid name of a song.
|
| 32 |
artist_name: A string representing a valid name of a song.
|
| 33 |
"""
|
| 34 |
+
|
| 35 |
try:
|
| 36 |
# Search for the song by title and artist
|
| 37 |
song = genius.search_song(song_name, artist_name)
|