Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ from matplotlib import style
|
|
11 |
plt.switch_backend("agg")
|
12 |
style.use('ggplot')
|
13 |
|
14 |
-
font1 = {'family':'
|
15 |
|
16 |
#load and transform the data
|
17 |
data = load_iris()
|
@@ -105,7 +105,8 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue",
|
|
105 |
with gr.Row():
|
106 |
fig1 = gr.Plot(label="Plot covariance of Iris features")
|
107 |
fig2 = gr.Plot(label="Factor analysis")
|
108 |
-
|
|
|
109 |
gr.HTML(made)
|
110 |
gr.HTML(link)
|
111 |
|
|
|
11 |
plt.switch_backend("agg")
|
12 |
style.use('ggplot')
|
13 |
|
14 |
+
font1 = {'family':'DejaVu Sans','color':'#2563EB','size': 14}
|
15 |
|
16 |
#load and transform the data
|
17 |
data = load_iris()
|
|
|
105 |
with gr.Row():
|
106 |
fig1 = gr.Plot(label="Plot covariance of Iris features")
|
107 |
fig2 = gr.Plot(label="Factor analysis")
|
108 |
+
method.change(fn=factor_analysis, inputs=method, outputs=[fig1, fig2, components])
|
109 |
+
demo.load(fn=factor_analysis, inputs=method, outputs=[fig1, fig2, components])
|
110 |
gr.HTML(made)
|
111 |
gr.HTML(link)
|
112 |
|