Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,8 @@ import pytz
|
|
| 5 |
import yaml
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
| 7 |
import lyricsgenius
|
| 8 |
-
|
|
|
|
| 9 |
from Gradio_UI import GradioUI
|
| 10 |
|
| 11 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
|
@@ -14,7 +15,7 @@ from Gradio_UI import GradioUI
|
|
| 14 |
@tool
|
| 15 |
def get_song_lyrics(song_name: str, artist_name: str) -> str:
|
| 16 |
"""Fetch lyrics from Genius based on song title and artist name."""
|
| 17 |
-
genius_token = os.getenv("
|
| 18 |
if not genius_token:
|
| 19 |
return "Error: Genius API token not found."
|
| 20 |
|
|
|
|
| 5 |
import yaml
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
| 7 |
import lyricsgenius
|
| 8 |
+
import os
|
| 9 |
+
import time
|
| 10 |
from Gradio_UI import GradioUI
|
| 11 |
|
| 12 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
|
|
|
| 15 |
@tool
|
| 16 |
def get_song_lyrics(song_name: str, artist_name: str) -> str:
|
| 17 |
"""Fetch lyrics from Genius based on song title and artist name."""
|
| 18 |
+
genius_token = os.getenv("Genius_Lyrics")
|
| 19 |
if not genius_token:
|
| 20 |
return "Error: Genius API token not found."
|
| 21 |
|