trying to fix default gifs
Browse files
app.py
CHANGED
|
@@ -116,13 +116,13 @@ with gr.Blocks(css=css) as demo:
|
|
| 116 |
- Models shock interactions across uncertain boundaries, crucial for hypersonic flows and uncertainty quantification.
|
| 117 |
- Helps in high-speed aerodynamics and robust PDE solvers.
|
| 118 |
|
| 119 |
-
Explore these datasets to visualize fluid behavior and analyze dynamic flow evolution
|
| 120 |
"""
|
| 121 |
)
|
| 122 |
|
| 123 |
with gr.Row():
|
| 124 |
dataset_selector = gr.Dropdown(choices=["CE-RPUI", "CE-RM", "NS-PwC"], value="CE-RPUI", label="Select Dataset")
|
| 125 |
-
index_slider = gr.Slider(minimum=0, maximum=100, value=0, step=1, label="Select
|
| 126 |
|
| 127 |
gif_outputs = []
|
| 128 |
label_outputs = []
|
|
@@ -152,12 +152,6 @@ with gr.Blocks(css=css) as demo:
|
|
| 152 |
|
| 153 |
return output_values + label_values
|
| 154 |
|
| 155 |
-
# Initialize the GIFs with default values
|
| 156 |
-
default_outputs = update_layout("CE-RPUI", 0)
|
| 157 |
-
for i, output in enumerate(gif_outputs + label_outputs):
|
| 158 |
-
output.value = default_outputs[i].value
|
| 159 |
-
output.visible = default_outputs[i].visible
|
| 160 |
-
|
| 161 |
dataset_selector.change(update_layout, inputs=[dataset_selector, index_slider], outputs=gif_outputs + label_outputs)
|
| 162 |
index_slider.change(update_layout, inputs=[dataset_selector, index_slider], outputs=gif_outputs + label_outputs)
|
| 163 |
|
|
|
|
| 116 |
- Models shock interactions across uncertain boundaries, crucial for hypersonic flows and uncertainty quantification.
|
| 117 |
- Helps in high-speed aerodynamics and robust PDE solvers.
|
| 118 |
|
| 119 |
+
Explore these datasets to visualize fluid behavior and analyze dynamic flow evolution!
|
| 120 |
"""
|
| 121 |
)
|
| 122 |
|
| 123 |
with gr.Row():
|
| 124 |
dataset_selector = gr.Dropdown(choices=["CE-RPUI", "CE-RM", "NS-PwC"], value="CE-RPUI", label="Select Dataset")
|
| 125 |
+
index_slider = gr.Slider(minimum=0, maximum=100, value=0, step=1, label="Select Index")
|
| 126 |
|
| 127 |
gif_outputs = []
|
| 128 |
label_outputs = []
|
|
|
|
| 152 |
|
| 153 |
return output_values + label_values
|
| 154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 155 |
dataset_selector.change(update_layout, inputs=[dataset_selector, index_slider], outputs=gif_outputs + label_outputs)
|
| 156 |
index_slider.change(update_layout, inputs=[dataset_selector, index_slider], outputs=gif_outputs + label_outputs)
|
| 157 |
|