brendenc commited on
Commit
cefe9d7
1 Parent(s): 4c99cfc

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -112,7 +112,7 @@ def recommend(artist, song_title, embedding_importance, topk=5):
112
 
113
  body='<br>'.join([decode(x) for x in result.sort_values('score', ascending=False).head(topk).song_id.to_list()])
114
  fig = plot(artist, song_title)
115
- return f'<h3 style="text-align: center;">Recomendations</h3><p style="text-align: center;"><br>{body}</p>', fig
116
 
117
 
118
  out = umap.UMAP(n_neighbors=30, min_dist=0.2).fit_transform(embedding_df.iloc[:,:-1])
@@ -175,7 +175,7 @@ with app:
175
  slider = gr.Slider(0,1,value=0.5, label='Embedding Importance')
176
  but = gr.Button()
177
  with gr.Column():
178
- t = gr.Markdown()
179
 
180
  with gr.Row():
181
  p = gr.Plot(fig)
 
112
 
113
  body='<br>'.join([decode(x) for x in result.sort_values('score', ascending=False).head(topk).song_id.to_list()])
114
  fig = plot(artist, song_title)
115
+ return f'<h3 style="text-align: center;">Recommendations</h3><p style="text-align: center;"><br>{body}</p>', fig
116
 
117
 
118
  out = umap.UMAP(n_neighbors=30, min_dist=0.2).fit_transform(embedding_df.iloc[:,:-1])
 
175
  slider = gr.Slider(0,1,value=0.5, label='Embedding Importance')
176
  but = gr.Button()
177
  with gr.Column():
178
+ t = gr.Markdown('<h3 style="text-align: center;">Recomendations</h3>')
179
 
180
  with gr.Row():
181
  p = gr.Plot(fig)