Commit
·
73eddbd
1
Parent(s):
0670634
cleanup
Browse files
app.py
CHANGED
@@ -11,16 +11,7 @@ iris = data.iris()
|
|
11 |
|
12 |
def scatter_plot_fn(dataset):
|
13 |
return gr.ScatterPlot(
|
14 |
-
value=iris
|
15 |
-
x="petalWidth",
|
16 |
-
y="petalLength",
|
17 |
-
color="species",
|
18 |
-
title="Iris Dataset",
|
19 |
-
color_legend_title="Species",
|
20 |
-
x_title="Petal Width",
|
21 |
-
y_title="Petal Length",
|
22 |
-
tooltip=["petalWidth", "petalLength", "species"],
|
23 |
-
caption="",
|
24 |
)
|
25 |
|
26 |
|
@@ -35,7 +26,6 @@ with gr.Blocks() as demo:
|
|
35 |
gr.Markdown("This app analyzes how cool your music taste is. We dare you to take this challenge!")
|
36 |
with gr.Row():
|
37 |
get_started_btn = gr.Button("Get Started")
|
38 |
-
#dataset = gr.Dropdown(choices=["cars", "iris"], value="cars")
|
39 |
with gr.Row():
|
40 |
with gr.Column():
|
41 |
with gr.Row():
|
@@ -52,7 +42,6 @@ with gr.Blocks() as demo:
|
|
52 |
gr.Markdown(" ### We have recommendations for you!")
|
53 |
with gr.Row():
|
54 |
gr.DataFrame()
|
55 |
-
#dataset.change(scatter_plot_fn, inputs=dataset, outputs=plot)
|
56 |
demo.load(fn=scatter_plot_fn, outputs=plot)
|
57 |
|
58 |
|
|
|
11 |
|
12 |
def scatter_plot_fn(dataset):
|
13 |
return gr.ScatterPlot(
|
14 |
+
value=iris
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
)
|
16 |
|
17 |
|
|
|
26 |
gr.Markdown("This app analyzes how cool your music taste is. We dare you to take this challenge!")
|
27 |
with gr.Row():
|
28 |
get_started_btn = gr.Button("Get Started")
|
|
|
29 |
with gr.Row():
|
30 |
with gr.Column():
|
31 |
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 |
|