Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,11 @@ from Gradio_UI import GradioUI
|
|
| 14 |
|
| 15 |
@tool
|
| 16 |
def get_song_lyrics(song_name: str, artist_name: str) -> str:
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
genius_token = os.getenv("Genius_Lyrics")
|
| 19 |
if not genius_token:
|
| 20 |
return "Error: Genius API token not found."
|
|
|
|
| 14 |
|
| 15 |
@tool
|
| 16 |
def get_song_lyrics(song_name: str, artist_name: str) -> str:
|
| 17 |
+
"""A tool that fetches lyrics from Genius based on the song title and artist name.
|
| 18 |
+
Args:
|
| 19 |
+
song_name: A string representing a valid name of a song.
|
| 20 |
+
artist_name: A string representing a valid name of a song.
|
| 21 |
+
"""
|
| 22 |
genius_token = os.getenv("Genius_Lyrics")
|
| 23 |
if not genius_token:
|
| 24 |
return "Error: Genius API token not found."
|