Spaces:
Sleeping
Sleeping
Commit
·
34b2a8a
1
Parent(s):
a4d1cff
Update app.py
Browse files
app.py
CHANGED
@@ -127,21 +127,24 @@ with gr.Blocks(title=title, theme=gr.themes.Default(font=[gr.themes.GoogleFont("
|
|
127 |
# output = gr.Textbox(label="Output Box")
|
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 |
min_slider_samples_range.change(generate_plots, inputs=[min_slider_samples_range,max_slider_samples_range], outputs= gr.Plot() )
|
132 |
-
changed =True
|
133 |
-
|
134 |
-
elif max_slider_samples_range:
|
135 |
max_slider_samples_range.change(generate_plots, inputs=[min_slider_samples_range,max_slider_samples_range], outputs= gr.Plot() )
|
136 |
changed = True
|
137 |
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
|
|
|
|
|
|
|
|
|
|
142 |
|
143 |
-
else:
|
144 |
-
|
145 |
|
146 |
|
147 |
demo.launch()
|
|
|
127 |
# output = gr.Textbox(label="Output Box")
|
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 !changed:
|
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 |
changed = True
|
135 |
|
136 |
+
|
137 |
+
#elif max_slider_samples_range:
|
138 |
+
|
139 |
+
|
140 |
+
|
141 |
+
# elif changed == False:
|
142 |
+
# min_slider_samples_range.change(generate_plots, inputs=[min_slider_samples_range,max_slider_samples_range], outputs= gr.Plot() )
|
143 |
+
# max_slider_samples_range.change(generate_plots, inputs=[min_slider_samples_range,max_slider_samples_range], outputs= gr.Plot() )
|
144 |
+
# changed = True
|
145 |
|
146 |
+
# else:
|
147 |
+
# pass
|
148 |
|
149 |
|
150 |
demo.launch()
|