Tristan Thrush commited on
Commit
c66809e
1 Parent(s): 4f5e327

added fields for the reccomendation dataframe

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -19,7 +19,7 @@ def scatter_plot_fn(dataset):
19
  def get_started():
20
  # redirects to spotify and comes back
21
  # then generates plots
22
- return
23
 
24
  with gr.Blocks() as demo:
25
  gr.Markdown(" ## Spotify Analyzer 🥳🎉")
@@ -37,11 +37,15 @@ with gr.Blocks() as demo:
37
  with gr.Column():
38
  plot = gr.ScatterPlot(show_label=False).style(container=True)
39
  with gr.Column():
40
- plot = gr.ScatterPlot(show_label=False).style(container=True)
41
  with gr.Row():
42
  gr.Markdown(" ### We have recommendations for you!")
43
  with gr.Row():
44
- gr.DataFrame()
 
 
 
 
45
  demo.load(fn=scatter_plot_fn, outputs=plot)
46
 
47
 
 
19
  def get_started():
20
  # redirects to spotify and comes back
21
  # then generates plots
22
+ return
23
 
24
  with gr.Blocks() as demo:
25
  gr.Markdown(" ## Spotify Analyzer 🥳🎉")
 
37
  with gr.Column():
38
  plot = gr.ScatterPlot(show_label=False).style(container=True)
39
  with gr.Column():
40
+ plot = gr.ScatterPlot(show_label=False).style(container=True)
41
  with gr.Row():
42
  gr.Markdown(" ### We have recommendations for you!")
43
  with gr.Row():
44
+ gr.Dataframe(
45
+ headers=["Song", "Album", "Artist"],
46
+ datatype=["str", "str", "str"],
47
+ label="Reccomended Songs",
48
+ )
49
  demo.load(fn=scatter_plot_fn, outputs=plot)
50
 
51