seyia92coding commited on
Commit
8fc4f28
1 Parent(s): fadd779

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -170,7 +170,7 @@ def gradio_music_graph(client_id, client_secret, artist_name): #total_albums
170
  #fig.savefig('artist_popular_albums.png')
171
  plt.show()
172
 
173
- return fig
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")
 
170
  #fig.savefig('artist_popular_albums.png')
171
  plt.show()
172
 
173
+ return df
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")