saayedalam commited on
Commit
70248c8
·
verified ·
1 Parent(s): a0cbe1e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -11,7 +11,10 @@ from Gradio_UI import GradioUI
11
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
12
 
13
  # Initialize the Genius API client with access token
14
- genius = lyricsgenius.Genius("2kWJ8Wy72HT3T8qjkh__gGB3fAbCLtTbC68j1i9tvOM9DF9ikSr95wm-hOQLZq9_")
 
 
 
15
 
16
  # Setting some preferences
17
  genius.remove_section_headers = True # Removes section headers like [Chorus], [Verse], etc.
 
11
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
12
 
13
  # Initialize the Genius API client with access token
14
+ genius_token = lyricsgenius.Genius("2kWJ8Wy72HT3T8qjkh__gGB3fAbCLtTbC68j1i9tvOM9DF9ikSr95wm-hOQLZq9_")
15
+ if not genius_token:
16
+ return "Error: Genius API token not found."
17
+ genius = lyricsgenius.Genius(genius_token)
18
 
19
  # Setting some preferences
20
  genius.remove_section_headers = True # Removes section headers like [Chorus], [Verse], etc.