Spaces:
Running
Running
AlekseyKorshuk
commited on
Commit
•
a617f87
1
Parent(s):
2992cd6
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,8 @@ import math
|
|
3 |
import random
|
4 |
import os
|
5 |
import streamlit as st
|
|
|
|
|
6 |
|
7 |
st.set_page_config(page_title="HuggingArtists")
|
8 |
|
@@ -101,6 +103,10 @@ st.markdown(caption)
|
|
101 |
artist_name = st.text_input("Artist name:", "Eminem")
|
102 |
start = st.text_input("Beginning of the song:", "But for me to rap like a computer")
|
103 |
|
|
|
|
|
|
|
|
|
104 |
if st.button("Run"):
|
105 |
-
with st.spinner(text="
|
106 |
-
|
|
|
3 |
import random
|
4 |
import os
|
5 |
import streamlit as st
|
6 |
+
import lyricsgenius
|
7 |
+
|
8 |
|
9 |
st.set_page_config(page_title="HuggingArtists")
|
10 |
|
|
|
103 |
artist_name = st.text_input("Artist name:", "Eminem")
|
104 |
start = st.text_input("Beginning of the song:", "But for me to rap like a computer")
|
105 |
|
106 |
+
TOKEN = "q_JK_BFy9OMiG7fGTzL-nUto9JDv3iXI24aYRrQnkOvjSCSbY4BuFIindweRsr5I"
|
107 |
+
genius = lyricsgenius.Genius(TOKEN)
|
108 |
+
|
109 |
+
|
110 |
if st.button("Run"):
|
111 |
+
with st.spinner(text=f"Downloading the model by {artist_name }..."):
|
112 |
+
artist = genius.search_artist(artist_name, max_songs=0, get_full_info=False)
|