Spaces:
Sleeping
Sleeping
slider
#1
by amyyy09 - opened
app.py
CHANGED
|
@@ -137,7 +137,7 @@ with gr.Blocks(title="LSTTN — Pronóstico de tráfico PEMS-04", theme=gr.theme
|
|
| 137 |
with gr.Tab("Mapa de red"):
|
| 138 |
with gr.Row():
|
| 139 |
sample_slider_net = gr.Slider(0, N_SAMPLES - 1, value=0, step=1, label="Muestra de test")
|
| 140 |
-
horizon_slider = gr.Slider(0,
|
| 141 |
net_plot = gr.Plot()
|
| 142 |
sample_slider_net.change(plot_network, [sample_slider_net, horizon_slider], net_plot)
|
| 143 |
horizon_slider.change(plot_network, [sample_slider_net, horizon_slider], net_plot)
|
|
|
|
| 137 |
with gr.Tab("Mapa de red"):
|
| 138 |
with gr.Row():
|
| 139 |
sample_slider_net = gr.Slider(0, N_SAMPLES - 1, value=0, step=1, label="Muestra de test")
|
| 140 |
+
horizon_slider = gr.Slider(0, 12, value=0, step=1, label="Paso futuro (horizonte)")
|
| 141 |
net_plot = gr.Plot()
|
| 142 |
sample_slider_net.change(plot_network, [sample_slider_net, horizon_slider], net_plot)
|
| 143 |
horizon_slider.change(plot_network, [sample_slider_net, horizon_slider], net_plot)
|