Spaces:
Sleeping
Sleeping
Commit
·
829886e
1
Parent(s):
d49dc3d
Update app.py
Browse files
app.py
CHANGED
@@ -118,7 +118,8 @@ with gr.Blocks(title=title, theme=gr.themes.Default(font=[gr.themes.GoogleFont("
|
|
118 |
|
119 |
|
120 |
r = 0.1
|
121 |
-
|
|
|
122 |
real_cov = toeplitz(r ** np.arange(n_features))
|
123 |
coloring_matrix = cholesky(real_cov)
|
124 |
gr.Markdown(" **[Demo is based on sklearn docs](https://scikit-learn.org/stable/auto_examples/covariance/plot_lw_vs_oas.html)**")
|
@@ -128,10 +129,11 @@ with gr.Blocks(title=title, theme=gr.themes.Default(font=[gr.themes.GoogleFont("
|
|
128 |
# greet_btn.click(fn=greet, inputs=name, outputs=output)
|
129 |
gr.Label(value="Comparison of Covariance Estimators")
|
130 |
#if min_slider_samples_range:
|
131 |
-
while not
|
132 |
min_slider_samples_range.change(generate_plots, inputs=[min_slider_samples_range,max_slider_samples_range], outputs= gr.Plot() )
|
133 |
max_slider_samples_range.change(generate_plots, inputs=[min_slider_samples_range,max_slider_samples_range], outputs= gr.Plot() )
|
134 |
-
|
|
|
135 |
|
136 |
|
137 |
#elif max_slider_samples_range:
|
|
|
118 |
|
119 |
|
120 |
r = 0.1
|
121 |
+
changed1 = False
|
122 |
+
changed2 = False
|
123 |
real_cov = toeplitz(r ** np.arange(n_features))
|
124 |
coloring_matrix = cholesky(real_cov)
|
125 |
gr.Markdown(" **[Demo is based on sklearn docs](https://scikit-learn.org/stable/auto_examples/covariance/plot_lw_vs_oas.html)**")
|
|
|
129 |
# greet_btn.click(fn=greet, inputs=name, outputs=output)
|
130 |
gr.Label(value="Comparison of Covariance Estimators")
|
131 |
#if min_slider_samples_range:
|
132 |
+
while not changed1 and changed2:
|
133 |
min_slider_samples_range.change(generate_plots, inputs=[min_slider_samples_range,max_slider_samples_range], outputs= gr.Plot() )
|
134 |
max_slider_samples_range.change(generate_plots, inputs=[min_slider_samples_range,max_slider_samples_range], outputs= gr.Plot() )
|
135 |
+
changed1 = True
|
136 |
+
changed2 = True
|
137 |
|
138 |
|
139 |
#elif max_slider_samples_range:
|