seyia92coding
commited on
Commit
•
8d21a3a
1
Parent(s):
8fc4f28
Update app.py
Browse files
app.py
CHANGED
@@ -167,10 +167,9 @@ def gradio_music_graph(client_id, client_secret, artist_name): #total_albums
|
|
167 |
plt.tight_layout()
|
168 |
|
169 |
sns.boxplot(x=df["album_name"], y=df["popularity"], ax=ax)
|
170 |
-
#fig.savefig('artist_popular_albums.png')
|
171 |
plt.show()
|
172 |
|
173 |
-
return
|
174 |
#Interface will include these buttons based on parameters in the function with a dataframe output
|
175 |
music_plots = gr.Interface(gradio_music_graph, ["text", "text", "text"],
|
176 |
["plot"], title="Popular Songs By Album Box Plot Distribution on Spotify", description="Using your Spotify API Access from https://developer.spotify.com/ you can see your favourite artist's most popular albums on Spotify")
|
|
|
167 |
plt.tight_layout()
|
168 |
|
169 |
sns.boxplot(x=df["album_name"], y=df["popularity"], ax=ax)
|
|
|
170 |
plt.show()
|
171 |
|
172 |
+
return fig
|
173 |
#Interface will include these buttons based on parameters in the function with a dataframe output
|
174 |
music_plots = gr.Interface(gradio_music_graph, ["text", "text", "text"],
|
175 |
["plot"], title="Popular Songs By Album Box Plot Distribution on Spotify", description="Using your Spotify API Access from https://developer.spotify.com/ you can see your favourite artist's most popular albums on Spotify")
|