AlekseyKorshuk commited on
Commit
23359a9
β€’
1 Parent(s): 17675dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -111,13 +111,13 @@ model_html = """
111
  <div class="inline-flex flex-col" style="line-height: 1.5;">
112
  <div class="flex">
113
  <div
114
- style="display:DISPLAY_1; margin-left: auto; margin-right: auto; width: 92px; height:92px; border-radius: 50%; background-size: cover; background-image: url(&#39;USER_PROFILE&#39;)">
115
  </div>
116
  </div>
117
  <div style="text-align: center; margin-top: 3px; font-size: 16px; font-weight: 800">πŸ€– HuggingArtists Model πŸ€–</div>
118
  <div style="text-align: center; font-size: 16px; font-weight: 800">USER_NAME</div>
119
  <a href="https://genius.com/artists/USER_HANDLE">
120
- <div style="text-align: center; font-size: 14px;">@USER_HANDLE</div>
121
  </a>
122
  </div>
123
  """
@@ -129,4 +129,4 @@ if st.button("Run"):
129
  artist_dict = genius.artist(artist.id)['artist']
130
  artist_url = str(artist_dict['url'])
131
  model_name = artist_url[artist_url.rfind('/') + 1:].lower()
132
- st.markdown(model_html.format(USER_PROFILE=artist.image_url, USER_NAME=artist.name, USER_HANDLE=model_name ))
 
111
  <div class="inline-flex flex-col" style="line-height: 1.5;">
112
  <div class="flex">
113
  <div
114
+ \t\t\tstyle="display:DISPLAY_1; margin-left: auto; margin-right: auto; width: 92px; height:92px; border-radius: 50%; background-size: cover; background-image: url(&#39;USER_PROFILE&#39;)">
115
  </div>
116
  </div>
117
  <div style="text-align: center; margin-top: 3px; font-size: 16px; font-weight: 800">πŸ€– HuggingArtists Model πŸ€–</div>
118
  <div style="text-align: center; font-size: 16px; font-weight: 800">USER_NAME</div>
119
  <a href="https://genius.com/artists/USER_HANDLE">
120
+ \t<div style="text-align: center; font-size: 14px;">@USER_HANDLE</div>
121
  </a>
122
  </div>
123
  """
 
129
  artist_dict = genius.artist(artist.id)['artist']
130
  artist_url = str(artist_dict['url'])
131
  model_name = artist_url[artist_url.rfind('/') + 1:].lower()
132
+ st.markdown(model_html.format(USER_PROFILE=artist.image_url, USER_NAME=artist.name, USER_HANDLE=model_name ), unsafe_allow_html=True)